Function at 0x40acc0
Capabilities:
Accept command line arguments
Get file version info
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x44c040]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [ebp + 8]
mov ecx, 0x44c958
push ebx
push esi
mov dword [esp + 0x40], eax
mov eax, dword [vtable.CDebugPrint.0]
push edi
push str.Init_exception_handler...
call dword [eax + 0x1c]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
push 0x406fb0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x43d290
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x40ad62
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetProcessUserModeExceptionPolicy
push edi
call esi
push str.SetProcessUserModeExceptionPolicy
push edi
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x40ad62
test esi, esi
je 0x40ad62
lea eax, [esp + 0x40]
push eax
call ebx
test eax, eax
je 0x40ad62
mov eax, dword [esp + 0x40]
and eax, 0xfffffffe
push eax
call esi
mov bl, 1
mov byte [esp + 0xe], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
test edi, edi
je 0x40af82
cmp word [edi], 0
je 0x40af82
push str._debug
push edi
call fcn.00418a2e
mov esi, eax
add esp, 8
test esi, esi
je 0x40ae2f
cmp dword [0x44fe1c], 0
je 0x40af23
add esi, 0xc
cmp word [esi], 0x20
jne 0x40adb9
add esi, 2
cmp word [esi], 0x20
je 0x40adb0
push 0x43cb0c
push esi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40ade5
sub eax, esi
sar eax, 1
push eax
push esi
push 0x104
push 0x44fc10
call fcn.0041aebd
add esp, 0x10
jmp 0x40adf8
push esi
push 0x104
push 0x44fc10
call fcn.0041b235
add esp, 0xc
push 0
push 0
push dword [0x44fc0c]
push dword [0x44fe1c]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10
push str._shutdown
push edi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40ae80
mov eax, dword [0x44fe1c]
test eax, eax
je 0x40af23
push 0
push 0
push dword [0x44fe18]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10
push str._start
push edi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40aea9
push ecx
xor bl, bl
lea ecx, [eax + 0xc]
mov edx, 0x44e240
mov byte [esp + 0x12], bl
call fcn.004065d0
add esp, 4
push str._autostart
push edi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40af0c
add eax, 0x16
push eax
push 0x500
push 0x44f208
call fcn.0041b235
mov eax, dword [0x44fe1c]
add esp, 0xc
test eax, eax
je 0x40af23
push 0
push 0
push dword [0x44fc08]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10
push str._getgraphics
push edi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40af3c
call fcn.0040a300
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10
push str._logfile
push edi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40af5f
push ecx
mov edx, section..FPSMON
lea ecx, [eax + 0x10]
call fcn.004065d0
add esp, 4
push str._appdata
push edi
call fcn.00418a2e
add esp, 8
test eax, eax
je 0x40af82
push ecx
mov edx, 0x44e028
lea ecx, [eax + 0x10]
call fcn.004065d0
add esp, 4
mov ecx, 0x44e240
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40af90
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub ecx, edx
sar ecx, 1
jne 0x40afd0
push 0x104
push 0x44e240
push 0
call edi
push 0x5c
push 0x44e240
call fcn.00418c8e
add esp, 8
test eax, eax
je 0x40aff2
xor ecx, ecx
mov word [eax + 2], cx
jmp 0x40aff2
cmp word [ecx*2 + 0x44e23e], 0x5c
je 0x40aff2
push 0x43cc74
push 0x104
push 0x44e240
call fcn.00420278
add esp, 0xc
cmp dword [0x44e540], 0xb7
jne 0x40b02c
push 0x40
push 0x43ccc0
push str.One_copy_of_FPSMonitor_is_running_already
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_RegisterWindowMessageW]
push str.FPSMonitorShutdown
call esi
push str.FPSMonitorDebugOn
mov dword [0x44fe18], eax
call esi
push str.FPSMonitorSetAutostart
mov dword [0x44fc0c], eax
call esi
mov dword [0x44fc08], eax
lea eax, [esp + 0x68]
push eax
push 0x44e448
lea eax, [esp + 0x50]
push eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea edx, [esp + 0x4c]
mov ecx, eax
call fcn.00406400
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov esi, dword [esp + 0x44]
xorps xmm0, xmm0
shl eax, 8
or eax, dword [esp + 0x48]
push 0x7f00
push esi
mov dword [0x44e23c], eax
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x40b6b0
mov dword [esp + 0x2c], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], 6
mov dword [esp + 0x3c], str.FPSMonitor32_launcher
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push esi
push 0
push 0
push 0x1e0
push 0x280
push 0
push SysReAllocString
push 0xcf0000
push str.FPSMonitor32_launcher
push str.FPSMonitor32_launcher
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, eax
mov dword [0x44fe1c], ecx
test ecx, ecx
je 0x40af23
xor eax, eax
mov edx, 5
test bl, bl
cmovne eax, edx
push eax
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x44fe1c]
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_ChangeWindowMessageFilterEx]
push 0
push 1
push dword [0x44fc08]
push dword [0x44fe1c]
call esi
push 0
push 1
push dword [0x44fe18]
push dword [0x44fe1c]
call esi
push 0
push 1
push dword [0x44fc0c]
push dword [0x44fe1c]
call esi
mov edx, dword [sym.imp.fps_mon32.dll_wchar_t__szLogFileName]
push ecx
call fcn.00406670
add esp, 4
xor eax, eax
mov word [esp + 0x278], ax
push 0x1fe
push eax
lea eax, [esp + 0x282]
push eax
call fcn.00419020
add esp, 0xc
xor eax, eax
mov word [esp + 0x68], ax
mov dword [esp + 0x6a], eax
mov word [esp + 0x478], ax
push 0x1fe
push eax
lea eax, [esp + 0x482]
push eax
call fcn.00419020
add esp, 0xc
lea eax, [esp + 0x70]
push 0x104
push eax
push 0
call edi
lea eax, [esp + 0x70]
push 0x104
push eax
call fcn.00420573
push 0x100
lea eax, [esp + 0x284]
push eax
push 0x100
lea eax, [esp + 0x68c]
push eax
push 0x100
lea eax, [esp + 0x494]
push eax
push 3
lea eax, [esp + 0x8c]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0042080f
add esp, 0x2c
lea eax, [esp + 0x278]
push eax
lea eax, [esp + 0x67c]
push 0x100
push eax
call fcn.00420278
add esp, 0xc
lea eax, [esp + 0x678]
push 0
push eax
push dword [sym.imp.fps_mon32.dll_wchar_t__szLogFileName]
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push 0x43ccc0
call dword [eax + 0x30]
push 0x104
lea eax, [esp + 0x74]
push eax
push 0
call edi
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.0041768e
add esp, 4
mov edi, eax
lea eax, [esp + 0x70]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
push 0x43cc74
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [esp + 0x44]
push edi
movzx esi, word [eax + 0x14]
call fcn.00417697
mov eax, dword [vtable.CDebugPrint.0]
add esp, 4
mov ecx, 0x44c958
push str.GameHook_launcher_build_:
call dword [eax + 0x1c]
push esi
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
lea eax, [esp + 0x40]
xor esi, esi
push eax
push 8
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40b363
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 4
push eax
push 4
lea eax, [esp + 0x50]
push eax
push 0x14
push dword [esp + 0x50]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne esi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x40b372
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x40b3ab
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.GameHook_is_not_elevated
mov dword [0x44cba0], 1
call dword [eax + 0x1c]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
mov edi, dword [sym.imp.fps_mon32.dll_int___cdecl_GameHookInit_struct_HWND_____unsigned_long_int__unsigned_long_int_]
test bl, bl
jne 0x40b3fd
call fcn.00416b20
push 0x43db50
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b3e4
push dword [0x44e448]
push dword [0x44e23c]
push dword [0x44fe1c]
call edi
add esp, 0xc
test eax, eax
jne 0x40b3f8
push 0x10
push str.fps_mon32
push str.Error_installing_hook
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.00409b60
push 0
push 0
mov dword [esp + 0x48], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov esi, eax
test esi, esi
jns 0x40b49d
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
mov dword [esp + 0x40], 0
cmp esi, 0x80010106
je 0x40b489
push str.CoInitializeEx_failed:
mov dword [0x44cba0], 2
call dword [eax + 0x1c]
push esi
mov ecx, eax
mov dword [eax + 0x244], 1
mov edx, dword [eax]
call dword [edx + 4]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x870]
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10
push str.CoInitializeEx_has_returned_RPC_E_CHANGED_MODE
mov dword [0x44cba0], 1
call dword [eax + 0x1c]
jmp 0x40b4ea
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov esi, eax
test esi, esi
jns 0x40b503
mov edx, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.CoInitializeSecurity_failed:
mov dword [0x44cba0], 2
call dword [edx + 0x1c]
push esi
mov ecx, eax
mov dword [eax + 0x244], 1
mov edx, dword [eax]
call dword [edx + 4]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
mov bh, 1
test bl, bl
jne 0x40b54f
call fcn.0040a9b0
mov ebx, eax
lea eax, [esp + 0x44]
push eax
shr ebx, 0x16
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0x44], 0
sete byte [esp + 0xf]
and bl, 1
je 0x40b543
mov bl, byte [esp + 0xe]
mov bh, 1
mov dl, bl
call fcn.00411aa0
jmp 0x40b55c
mov bh, byte [esp + 0xf]
test bh, bh
je 0x40b558
mov bl, byte [esp + 0xe]
mov dl, bl
call fcn.00411aa0
jmp 0x40b55c
mov bl, byte [esp + 0xe]
push 0
push 0x3e8
push 1
push dword [0x44fe1c]
call dword [sym.imp.USER32.dll_SetTimer]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [esp + 0x4c]
push 0
push 0
push 0
push eax
call esi
test eax, eax
je 0x40b5b9
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
nop
lea eax, [esp + 0x4c]
push eax
call edi
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x58]
push eax
call esi
test eax, eax
jne 0x40b590
mov edi, dword [sym.imp.fps_mon32.dll_int___cdecl_GameHookInit_struct_HWND_____unsigned_long_int__unsigned_long_int_]
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.Launcher_is_shutting_down...
call dword [eax + 0x1c]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
test bh, bh
je 0x40b5ef
mov cl, bl
call fcn.004125b0
cmp dword [esp + 0x40], 0
je 0x40b5fc
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
jne 0x40b63f
push 0
push 0
push 0
call edi
mov eax, dword [0x44e238]
add esp, 0xc
test eax, eax
je 0x40b61b
push eax
call dword [sym.imp.USER32.dll_UnhookWinEvent]
mov eax, dword [0x44e230]
test eax, eax
je 0x40b635
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x44e230], 0
mov ecx, 0x44e490
call fcn.00404960
mov eax, dword [0x44e544]
test eax, eax
je 0x40b64f
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.Launcher_shutdown_completed
call dword [eax + 0x1c]
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
call dword [eax + 0x34]
mov ecx, dword [esp + 0x87c]
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041713e
mov esp, ebp
pop ebp
ret 0x10