Function at 0x40805f
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00403ddb
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
xor ebx, ebx
mov dword [0x4be0d8], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.DLL_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004457e4
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004379a9
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041bbca
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00418d74
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x4082a8
mov esi, 0x4bdc58
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004379a9
mov eax, dword [ebp - 8]
cmp word [eax], 0x22
pop ecx
mov dword [ebp - 0xc], eax
jne 0x4080e7
add eax, 2
mov dword [ebp - 0xc], eax
push 4
push dword [ebp - 0xc]
push 0x4a4518
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x408178
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.00482120
test al, al
je 0x408178
push 0x6592
mov ecx, esi
call fcn.0043d4c2
mov eax, dword [0x4bdc58]
push 0x6590
mov word [eax], bx
push dword [0x4bdc58]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4bdc58]
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.0043d4c2
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004457e4
mov eax, dword [ebp - 0x10]
call fcn.00405790
lea ecx, [ebp - 0x10]
call fcn.00437960
mov ecx, esi
mov byte [0x4c1003], bl
call fcn.00437960
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.00438b8f
add esp, 0xc
test al, al
je 0x4081eb
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.00482120
test al, al
jne 0x4081aa
cmp dx, 0x2a
jne 0x4081eb
mov ax, word [ecx]
call fcn.00482120
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4bdbe6], bl
mov dword [ebp - 0x14], ecx
call fcn.004379a9
cmp byte [ebp - 2], bl
pop ecx
je 0x4082ad
push 3
push dword [ebp - 0x14]
push 0x4a450c
call fcn.00438b38
add esp, 0xc
test al, al
je 0x4082ad
cmp byte [ebp - 1], 2
jge 0x408221
push ebx
push 0x4bdbcc
mov eax, 0x10000
push eax
push eax
push 0x4bdc74
push 0x403ba6
mov byte [0x4bdc74], 0x11
call fcn.00437ab2
add esp, 0x18
test eax, eax
jne 0x408221
mov byte [0x4bdc74], bl
mov al, byte [0x4bdfa4]
push edi
mov byte [0x4bdbe4], al
call fcn.00403c65
pop ecx
push ebx
mov ecx, 0x4bdfa0
call fcn.0042eaa5
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4a450a
mov ecx, 0x4bdfe0
call fcn.0043d538
mov eax, dword [0x4bdc1c]
cmp eax, ebx
mov dword [0x4bdfd8], ebx
mov dword [0x4bdfdc], ebx
mov byte [0x4c1003], bl
mov byte [0x4bdc75], 0x20
je 0x4082d1
push dword [ebp + 0x14]
mov byte [0x4bc2c0], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041bbca
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00418d74
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x4080c8
or esi, 0xffffffff
jmp 0x4082f1
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.004457e4
push dword [ebp - 0x18]
mov ecx, 0x4bdfa0
call fcn.0042ba65
lea ecx, [ebp - 0x18]
call fcn.00437960
cmp byte [0x4bddce], bl
je 0x4082de
call fcn.0040fde7
mov ecx, 0x4bdfa0
call fcn.004380bc
mov esi, eax
push esi
call fcn.00437aa7
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00437960
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10