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.00403fb0
xor ebx, ebx
cmp dword [0x4d7c7c], ebx
pop ecx
jne 0x408e1b
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x408e1b
mov dword [0x4d7c7c], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0044cf2d
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0043dcd9
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041cf3e
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00419ea1
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x409049
mov esi, 0x4d7cbc
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0043dcd9
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 0x4bd7e0
call fcn.0043f11b
add esp, 0xc
test al, al
je 0x408f19
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.0040f4c7
test al, al
je 0x408f19
push 0x6592
mov ecx, esi
call fcn.004441e6
mov eax, dword [0x4d7cbc]
push 0x6590
mov word [eax], bx
push dword [0x4d7cbc]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4d7cbc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.004441e6
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0044cf2d
mov eax, dword [ebp - 0x10]
call fcn.00405da4
lea ecx, [ebp - 0x10]
call fcn.0043dd41
mov ecx, esi
mov byte [0x4db003], bl
call fcn.0043dc7d
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.0043f11b
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.0040f4c7
test al, al
jne 0x408f4b
cmp dx, 0x2a
jne 0x408f8c
mov ax, word [ecx]
call fcn.0040f4c7
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4d7c32], bl
mov dword [ebp - 0x14], ecx
call fcn.0043dcd9
cmp byte [ebp - 2], bl
pop ecx
je 0x40904e
push 3
push dword [ebp - 0x14]
push 0x4bd7d4
call fcn.0043f0c4
add esp, 0xc
test al, al
je 0x40904e
cmp byte [ebp - 1], 2
jge 0x408fc2
push ebx
push 0x4d7c18
mov eax, 0x10000
push eax
push eax
push 0x4d7cdc
push 0x403d7b
mov byte [0x4d7cdc], 0x11
call fcn.0043de4f
add esp, 0x18
test eax, eax
jne 0x408fc2
mov byte [0x4d7cdc], bl
mov al, byte [0x4d80e4]
push edi
mov byte [0x4d7c30], al
call fcn.00403e3a
pop ecx
push ebx
mov ecx, 0x4d80e0
call fcn.00435590
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4bd7d2
mov ecx, 0x4d8120
call fcn.0044425c
mov eax, dword [0x4d7c80]
cmp eax, ebx
mov dword [0x4d8118], ebx
mov dword [0x4d811c], ebx
mov byte [0x4db003], bl
mov byte [0x4d7cdd], 0x20
je 0x409072
push dword [ebp + 0x14]
mov byte [0x4d62d4], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041cf3e
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00419ea1
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.0044cf2d
push dword [ebp - 0x18]
mov ecx, 0x4d80e0
call fcn.0042f004
lea ecx, [ebp - 0x18]
call fcn.0043dd41
cmp byte [0x4d7e6e], bl
je 0x40907f
call fcn.004117d1
mov ecx, 0x4d80e0
call fcn.0043e601
mov esi, eax
push esi
call fcn.0043de44
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0043dd41
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10