SHARE
TWEET

FF6_Launcher.exe::_main

MaKiPL May 9th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int __cdecl main_0(int argc, const char **argv)
  2. {
  3.   char **v2; // ebx@1
  4.   HANDLE v3; // esi@1
  5.   int result; // eax@2
  6.   int v5; // eax@4
  7.   int v6; // eax@8
  8.   int v7; // esi@10
  9.   size_t v8; // eax@11
  10.   struct QStyle *v9; // eax@15
  11.   int v10; // eax@15
  12.   int v11; // eax@15
  13.   int v12; // eax@15
  14.   int v13; // eax@15
  15.   int v14; // eax@15
  16.   int v15; // eax@15
  17.   int v16; // eax@15
  18.   int v17; // eax@15
  19.   int v18; // eax@15
  20.   int v19; // eax@15
  21.   int v20; // eax@15
  22.   int v21; // eax@15
  23.   int v22; // eax@15
  24.   int v23; // eax@15
  25.   int v24; // eax@15
  26.   char v25; // [sp-18h] [bp-488h]@10
  27.   int v26; // [sp-14h] [bp-484h]@13
  28.   int v27; // [sp-10h] [bp-480h]@13
  29.   int v28; // [sp-Ch] [bp-47Ch]@13
  30.   char *v29; // [sp-8h] [bp-478h]@8
  31.   signed int v30; // [sp-4h] [bp-474h]@8
  32.   char v31; // [sp+Ch] [bp-464h]@15
  33.   char v32; // [sp+48h] [bp-428h]@15
  34.   char v33; // [sp+50h] [bp-420h]@15
  35.   int v34; // [sp+58h] [bp-418h]@15
  36.   char v35; // [sp+5Ch] [bp-414h]@15
  37.   char Dest; // [sp+6Ch] [bp-404h]@8
  38.  
  39.   v2 = (char **)argv;
  40.   v3 = CreateEventW(0, 1, 0, L"FINAL-FANTASY-VI-LAUNCHER");
  41.   if ( GetLastError() == 183 )
  42.   {
  43.     CloseHandle(v3);
  44.     result = 1;
  45.   }
  46.   else
  47.   {
  48.     putenv_s("QT_DEVICE_PIXEL_RATIO", "auto");
  49.     SteamAPI_RestartAppIfNecessary(382900);
  50.     SteamAPI_Init();
  51.     if ( SteamUser() )
  52.     {
  53.       v5 = SteamUser();
  54.       (*(void (__thiscall **)(int))(*(_DWORD *)v5 + 4))(v5);
  55.     }
  56.     if ( !SDL_WasInit(8704) )
  57.       SDL_InitSubSystem(8704);
  58.     if ( SteamUser() )
  59.     {
  60.       v6 = SteamUser();
  61.       (*(void (__thiscall **)(int, char *, signed int))(*(_DWORD *)v6 + 24))(v6, &Dest, 1024);
  62.       v30 = 1024;
  63.       v29 = strncat(&Dest, "\\settings.bin", 0xDu);
  64.     }
  65.     else
  66.     {
  67.       v30 = 1024;
  68.       v29 = "settings.bin";
  69.     }
  70.     strncpy(&Src, v29, v30);
  71.     v7 = sub_40A960();
  72.     v30 = 15;
  73.     v29 = 0;
  74.     v25 = 0;
  75.     if ( Src )
  76.       v8 = strlen(&Src);
  77.     else
  78.       v8 = 0;
  79.     sub_4014F0((int)&v25, &Src, v8);
  80.     if ( !sub_40A830(v7, *(void **)&v25, v26, v27, v28, (int)v29, v30) )
  81.     {
  82.       sub_4010C0((int)&v25, &Src);
  83.       sub_40A9A0(v7, *(void **)&v25, v26, v27, v28, (int)v29, v30);
  84.     }
  85.     QApplication::QApplication((QApplication *)&v32, &argc, v2, 328960);
  86.     QCoreApplication::setAttribute(13, 1);
  87.     sub_4023E0(&v31);
  88.     v34 = QString::fromAscii_helper("Fusion", 6);
  89.     v9 = QStyleFactory::create((const struct QString *)&v34);
  90.     QApplication::setStyle(v9);
  91.     QString::~QString((QString *)&v34);
  92.     QPalette::QPalette((QPalette *)&v33);
  93.     QColor::setRgb((QColor *)&v35, 255, 255, 255, 255);
  94.     v10 = QBrush::QBrush(&v34, &v35, 1);
  95.     QPalette::setBrush(&v33, 5, 10, v10);
  96.     QBrush::~QBrush((QBrush *)&v34);
  97.     QColor::QColor(&v35, 2);
  98.     v11 = QBrush::QBrush(&v34, &v35, 1);
  99.     QPalette::setBrush(&v33, 5, 0, v11);
  100.     QBrush::~QBrush((QBrush *)&v34);
  101.     QColor::setRgb((QColor *)&v35, 255, 255, 255, 255);
  102.     v12 = QBrush::QBrush(&v34, &v35, 1);
  103.     QPalette::setBrush(&v33, 5, 9, v12);
  104.     QBrush::~QBrush((QBrush *)&v34);
  105.     QColor::setRgb((QColor *)&v35, 255, 255, 255, 255);
  106.     v13 = QBrush::QBrush(&v34, &v35, 1);
  107.     QPalette::setBrush(&v33, 5, 16, v13);
  108.     QBrush::~QBrush((QBrush *)&v34);
  109.     QColor::QColor(&v35, 2);
  110.     v14 = QBrush::QBrush(&v34, &v35, 1);
  111.     QPalette::setBrush(&v33, 5, 18, v14);
  112.     QBrush::~QBrush((QBrush *)&v34);
  113.     QColor::QColor(&v35, 2);
  114.     v15 = QBrush::QBrush(&v34, &v35, 1);
  115.     QPalette::setBrush(&v33, 5, 19, v15);
  116.     QBrush::~QBrush((QBrush *)&v34);
  117.     QColor::QColor(&v35, 2);
  118.     v16 = QBrush::QBrush(&v34, &v35, 1);
  119.     QPalette::setBrush(&v33, 5, 6, v16);
  120.     QBrush::~QBrush((QBrush *)&v34);
  121.     QColor::setRgb((QColor *)&v35, 255, 255, 255, 255);
  122.     v17 = QBrush::QBrush(&v34, &v35, 1);
  123.     QPalette::setBrush(&v33, 5, 1, v17);
  124.     QBrush::~QBrush((QBrush *)&v34);
  125.     QColor::QColor(&v35, 2);
  126.     v18 = QBrush::QBrush(&v34, &v35, 1);
  127.     QPalette::setBrush(&v33, 5, 8, v18);
  128.     QBrush::~QBrush((QBrush *)&v34);
  129.     QColor::QColor(&v35, 7);
  130.     v19 = QBrush::QBrush(&v34, &v35, 1);
  131.     QPalette::setBrush(&v33, 5, 7, v19);
  132.     QBrush::~QBrush((QBrush *)&v34);
  133.     QColor::setRgb((QColor *)&v35, 42, 130, 218, 255);
  134.     v20 = QBrush::QBrush(&v34, &v35, 1);
  135.     QPalette::setBrush(&v33, 5, 14, v20);
  136.     QBrush::~QBrush((QBrush *)&v34);
  137.     QColor::setRgb((QColor *)&v35, 42, 130, 218, 255);
  138.     v21 = QBrush::QBrush(&v34, &v35, 1);
  139.     QPalette::setBrush(&v33, 5, 12, v21);
  140.     QBrush::~QBrush((QBrush *)&v34);
  141.     QColor::QColor(&v35, 2);
  142.     v22 = QBrush::QBrush(&v34, &v35, 1);
  143.     QPalette::setBrush(&v33, 5, 13, v22);
  144.     QBrush::~QBrush((QBrush *)&v34);
  145.     QColor::setRgb((QColor *)&v35, 200, 200, 200, 255);
  146.     v23 = QBrush::QBrush(&v34, &v35, 1);
  147.     QPalette::setBrush(&v33, 1, 1, v23);
  148.     QBrush::~QBrush((QBrush *)&v34);
  149.     QColor::setRgb((QColor *)&v35, 55, 55, 55, 255);
  150.     v24 = QBrush::QBrush(&v34, &v35, 1);
  151.     QPalette::setBrush(&v33, 1, 8, v24);
  152.     QBrush::~QBrush((QBrush *)&v34);
  153.     QApplication::setPalette((const struct QPalette *)&v33, 0);
  154.     v34 = QString::fromAscii_helper(
  155.             "QToolTip { color: #ffffff; background-color: #2a82da; border: 1px solid white; }",
  156.             80);
  157.     QApplication::setStyleSheet(QCoreApplication::self, (const struct QString *)&v34);
  158.     QString::~QString((QString *)&v34);
  159.     v34 = QString::fromAscii_helper(
  160.             "QDialog {background-image: url(./Final-Fantasy-6.png)  0 0 0 0 stretch stretch }",
  161.             80);
  162.     QWidget::setStyleSheet((QWidget *)&v31, (const struct QString *)&v34);
  163.     QString::~QString((QString *)&v34);
  164.     QWidget::show((QWidget *)&v31);
  165.     QApplication::exec();
  166.     SDL_Quit();
  167.     SteamAPI_Shutdown();
  168.     QPalette::~QPalette((QPalette *)&v33);
  169.     sub_4024B0(&v31);
  170.     QApplication::~QApplication((QApplication *)&v32);
  171.     result = 0;
  172.   }
  173.   return result;
  174. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top