Function at 0x408df4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 1
call fcn.00403f8f
xor ebx, ebx
cmp dword [0x4d7c84], ebx
pop ecx
jne 0x408e1b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x408e1b
mov dword [0x4d7c84], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044cd74
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0043dae7
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041cd69
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00419ccc
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x409049
mov esi, 0x4d7cc4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0043dae7
mov eax, dword [ebp - 8]
cmp word [eax], 0x22
pop ecx
mov dword [ebp - 0xc], eax
jne 0x408e88
add eax, 2
mov dword [ebp - 0xc], eax
push 4
push dword [ebp - 0xc]
push 0x4bd7c0
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x408f19
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.0043daaf
test al, al
je 0x408f19
push 0x6592
mov ecx, esi
call fcn.00443fa0
mov eax, dword [0x4d7cc4]
push 0x6590
mov word [eax], bx
push dword [0x4d7cc4]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4d7cc4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.00443fa0
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044cd74
mov eax, dword [ebp - 0x10]
call fcn.00405da4
lea ecx, [ebp - 0x10]
call fcn.0043db4f
mov ecx, esi
mov byte [0x4d7c0a], bl
call fcn.0043da89
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.0043eeea
add esp, 0xc
test al, al
je 0x408f8c
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.0043daaf
test al, al
jne 0x408f4b
cmp dx, 0x2a
jne 0x408f8c
mov ax, word [ecx]
call fcn.0043daaf
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4d7c3a], bl
mov dword [ebp - 0x14], ecx
call fcn.0043dae7
cmp byte [ebp - 2], bl
pop ecx
je 0x40904e
push 3
push dword [ebp - 0x14]
push 0x4bd7b4
call fcn.0043ee93
add esp, 0xc
test al, al
je 0x40904e
cmp byte [ebp - 1], 2
jge 0x408fc2
push ebx
push 0x4d7c20
mov eax, 0x10000
push eax
push eax
push 0x4d7ce4
push 0x403d5a
mov byte [0x4d7ce4], 0x11
call fcn.0043dc3f
add esp, 0x18
test eax, eax
jne 0x408fc2
mov byte [0x4d7ce4], bl
mov al, byte [0x4d80ec]
push edi
mov byte [0x4d7c38], al
call fcn.00403e19
pop ecx
push ebx
mov ecx, 0x4d80e8
call fcn.004353b6
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4bd7b2
mov ecx, 0x4d8128
call fcn.00444016
mov eax, dword [0x4d7c88]
cmp eax, ebx
mov dword [0x4d8120], ebx
mov dword [0x4d8124], ebx
mov byte [0x4d7c0a], bl
mov byte [0x4d7ce5], 0x20
je 0x409072
push dword [ebp + 0x14]
mov byte [0x4d62ec], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041cd69
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00419ccc
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x408e69
or esi, 0xffffffff
jmp 0x409092
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.0044cd74
push dword [ebp - 0x18]
mov ecx, 0x4d80e8
call fcn.0042ee2a
lea ecx, [ebp - 0x18]
call fcn.0043db4f
cmp byte [0x4d7e76], bl
je 0x40907f
call fcn.00411647
mov ecx, 0x4d80e8
call fcn.0043e3d0
mov esi, eax
push esi
call fcn.0043dc34
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0043db4f
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10