Function at 0x401f90
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x4e2529
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x515854]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x515854]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x88]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [ebp + 4], ebx
mov dword [ebp + 8], eax
mov byte [ebp + 0xc], bl
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x18], ebx
mov dword [ebp + 0x1c], ebx
mov dword [esp + 0x80], ebx
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x20], vtable.GameMgr::INotify.0
push ecx
mov dword [ebp], vtable.GameMgr::GMWindowImplBase.1.0
mov dword [ebp + 0x20], vtable.GameMgr::GMWindowImplBase.0
call fcn.00464c9b
lea edi, [ebp + 0x210]
mov dword [esp + 0x80], 1
call fcn.00434370
mov dword [ebp], vtable.GameMgr::GMSetupWnd.0
mov dword [ebp + 0x20], vtable.GameMgr::GMSetupWnd.1.0
mov dword [edi], vtable.GameMgr::GMSetupWnd.2.0
mov dword [ebp + 0x220], ebx
mov byte [ebp + 0x224], 0x47
mov byte [ebp + 0x225], 0x4d
mov byte [ebp + 0x226], 0xee
mov byte [ebp + 0x227], bl
mov dword [ebp + 0x228], ebx
mov dword [ebp + 0x22c], ebx
mov dword [ebp + 0x230], ebx
mov dword [ebp + 0x234], ebx
mov dword [ebp + 0x238], ebx
mov dword [ebp + 0x23c], 0x11223344
mov dword [ebp + method.GameMgr::GMFile.virtual_0], vtable.GameMgr::GMFile.0
mov dword [ebp + 0x24c], 0xffffffff
mov dword [ebp + 0x250], ebx
mov dword [ebp + 0x254], ebx
mov dword [ebp + 0x258], ebx
mov dword [ebp + 0x25c], ebx
mov edi, 7
mov dword [ebp + 0x278], edi
mov dword [ebp + 0x274], ebx
mov word [ebp + 0x264], bx
mov dword [ebp + 0x294], edi
mov dword [ebp + 0x290], ebx
mov word [ebp + 0x280], bx
mov dword [ebp + 0x2b0], edi
mov dword [ebp + 0x2ac], ebx
mov word [ebp + 0x29c], bx
mov dword [ebp + 0x2cc], edi
mov dword [ebp + 0x2c8], ebx
mov word [ebp + 0x2b8], bx
mov dword [ebp + 0x2e8], edi
mov dword [ebp + 0x2e4], ebx
mov word [ebp + 0x2d4], bx
mov dword [ebp + 0x304], edi
mov dword [ebp + 0x300], ebx
mov word [ebp + 0x2f0], bx
mov dword [ebp + 0x320], edi
mov dword [ebp + 0x31c], ebx
mov word [ebp + 0x30c], bx
mov dword [ebp + 0x340], edi
mov dword [ebp + 0x33c], ebx
mov word [ebp + 0x32c], bx
mov dword [ebp + 0x324], ebx
mov dword [ebp + 0x35c], edi
mov dword [ebp + 0x358], ebx
mov word [ebp + 0x348], bx
mov dword [ebp + 0x364], ebx
mov dword [ebp + 0x368], ebx
mov dword [ebp + 0x36c], ebx
mov dword [ebp + 0x370], ebx
mov dword [ebp + 0x3a8], edi
mov dword [ebp + 0x3a4], ebx
mov word [ebp + 0x394], bx
mov byte [esp + 0x80], 0xe
push 0x18
mov byte [ebp + 0x3ac], bl
call fcn.004b6eb3
add esp, 4
push eax
mov dword [ebp + 0x3b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebp + 0x3cc], edi
mov dword [ebp + 0x3c8], ebx
mov word [ebp + 0x3b8], bx
mov byte [ebp + 0x3d0], bl
mov dword [ebp + 0x3ec], edi
mov dword [ebp + 0x3e8], ebx
mov word [ebp + 0x3d8], bx
push ebx
push ebx
push 1
mov byte [esp + 0x8c], 0x11
push ebx
mov dword [ebp + 0x3f0], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [ebp + 0x324], eax
je 0x40220f
lea eax, [ebp + 0x328]
call fcn.00420680
jmp 0x402215
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], bx
mov byte [esp + 0x80], 0x12
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x402242
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x44]
call fcn.00407ef0
mov byte [esp + 0x80], 0x13
cmp dword [esp + 0x54], 8
mov eax, dword [esp + 0x40]
jae 0x402273
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x18], edx
je 0x40231a
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
lea esi, [eax + 2]
jmp 0x4022a0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022a0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x28]
call fcn.00407ef0
mov edx, esi
push edx
mov byte [esp + 0x84], 0x14
call fcn.0043ec8b
add esp, 4
mov byte [esp + 0x80], 0x13
cmp dword [esp + 0x38], 8
mov byte [esp + 0x17], al
jb 0x4022ed
mov eax, dword [esp + 0x24]
push eax
call fcn.004b6eae
add esp, 4
cmp byte [esp + 0x17], bl
je 0x40231a
mov edx, dword [esp + 0x18]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402300
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x60]
call fcn.00407ef0
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x7c]
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
push ecx
mov word [eax + 4], bx
call fcn.00401690
push ebp
call fcn.00404770
cmp al, bl
jne 0x402371
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
mov byte [ebp + 0x3ac], 1
push ebx
lea edx, [esp + 0x7c]
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
push edx
mov word [eax + 4], bx
call fcn.00401690
push ebp
call fcn.00406120
mov esi, 8
cmp dword [esp + 0x54], esi
jb 0x402389
mov eax, dword [esp + 0x40]
push eax
call fcn.004b6eae
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], ebx
mov word [esp + 0x40], bx
jb 0x4023a9
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004b6eae
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004b6e9f
add esp, 0x70
ret 4