Function at 0x401d60
Capabilities:
Accept command line arguments

Disassembly:
push 0xffffffffffffffff
push 0x513fa4
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x5467a4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
push edi
mov dword [esp + 0x1c], edi
call fcn.00483c30
xor ebx, ebx
lea esi, [edi + 0x210]
mov dword [esp + 0x7c], ebx
call fcn.00444c00
mov dword [edi], vtable.GameMgr::GMSetupWnd.0
mov dword [edi + 0x20], vtable.GameMgr::GMSetupWnd.1.0
mov dword [esi], vtable.GameMgr::GMSetupWnd.2.0
mov dword [edi + 0x220], ebx
mov byte [edi + 0x224], 0x47
mov byte [edi + 0x225], 0x4d
mov byte [edi + 0x226], 0xee
mov byte [edi + 0x227], bl
mov dword [edi + 0x228], ebx
mov dword [edi + 0x22c], ebx
mov dword [edi + 0x230], ebx
mov dword [edi + 0x234], ebx
mov dword [edi + 0x238], ebx
mov dword [edi + 0x23c], 0x11223344
mov dword [edi + 0x248], 0xffffffff
mov dword [edi + 0x250], ebx
mov dword [edi + 0x254], ebx
mov dword [edi + 0x258], ebx
mov dword [edi + 0x25c], ebx
mov ebp, 7
mov dword [edi + 0x278], ebp
mov dword [edi + 0x274], ebx
mov word [edi + 0x264], bx
mov dword [edi + 0x294], ebp
mov dword [edi + 0x290], ebx
mov word [edi + 0x280], bx
mov dword [edi + 0x2b0], ebp
mov dword [edi + 0x2ac], ebx
mov word [edi + 0x29c], bx
mov dword [edi + 0x2cc], ebp
mov dword [edi + 0x2c8], ebx
mov word [edi + 0x2b8], bx
mov dword [edi + 0x2e8], ebp
mov dword [edi + 0x2e4], ebx
mov word [edi + 0x2d4], bx
mov dword [edi + 0x304], ebp
mov dword [edi + 0x300], ebx
mov word [edi + 0x2f0], bx
mov dword [edi + 0x324], ebp
mov dword [edi + 0x320], ebx
mov word [edi + 0x310], bx
mov dword [edi + 0x308], ebx
mov dword [edi + 0x340], ebp
mov dword [edi + 0x33c], ebx
mov word [edi + 0x32c], bx
mov dword [edi + 0x348], ebx
mov dword [edi + 0x34c], ebx
mov dword [edi + 0x350], ebx
mov dword [edi + 0x354], ebx
mov dword [edi + 0x388], ebp
mov dword [edi + 0x384], ebx
mov word [edi + 0x374], bx
mov byte [esp + 0x7c], 0xc
push 0x18
mov byte [edi + 0x38c], bl
call fcn.004e7d83
add esp, 4
push eax
mov dword [edi + 0x390], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 0x3ac], ebp
mov dword [edi + 0x3a8], ebx
mov word [edi + 0x398], bx
mov byte [edi + 0x3b0], bl
mov dword [edi + 0x3cc], ebp
mov dword [edi + 0x3c8], ebx
mov word [edi + 0x3b8], bx
push ebx
push ebx
push 1
mov byte [esp + 0x88], 0xf
push ebx
mov dword [edi + 0x3d0], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, ebx
mov dword [edi + 0x308], eax
je 0x401f76
lea eax, [edi + 0x30c]
call fcn.0041d530
jmp 0x401f7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], bx
mov byte [esp + 0x7c], 0x10
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x401fa6
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea esi, [esp + 0x40]
call fcn.00407330
mov byte [esp + 0x7c], 0x11
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x401fd4
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathGetArgsW]
mov edx, eax
cmp edx, ebx
mov dword [esp + 0x14], edx
je 0x40207a
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebx
mov word [esp + 0x20], bx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402000
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x24]
call fcn.00407330
mov eax, esi
push eax
mov byte [esp + 0x80], 0x12
call fcn.0043a7a0
add esp, 4
mov byte [esp + 0x7c], 0x11
cmp dword [esp + 0x34], 8
mov byte [esp + 0x13], al
jb 0x40204a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.004e7d7e
add esp, 4
cmp byte [esp + 0x13], bl
je 0x40207a
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402060
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x5c]
call fcn.00407330
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x78]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x14], ebx
push edx
mov word [eax + 4], bx
call fcn.00401610
push edi
call fcn.00404260
cmp al, bl
jne 0x4020d1
sub esp, 0x1c
mov eax, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov byte [edi + 0x38c], 1
push ebx
lea ecx, [esp + 0x78]
mov dword [eax + 0x18], ebp
mov dword [eax + 0x14], ebx
push ecx
mov word [eax + 4], bx
call fcn.00401610
push edi
call fcn.004057a0
mov esi, 8
cmp dword [esp + 0x50], esi
jb 0x4020e9
mov edx, dword [esp + 0x3c]
push edx
call fcn.004e7d7e
add esp, 4
cmp dword [esp + 0x6c], esi
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov word [esp + 0x3c], bx
jb 0x402109
mov eax, dword [esp + 0x58]
push eax
call fcn.004e7d7e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.004e7d6f
add esp, 0x70
ret