Function at 0x4087b7
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 1
call fcn.00403f12
xor ebx, ebx
cmp dword [0x4c8c2c], ebx
pop ecx
jne 0x4087de
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4087de
mov dword [0x4c8c2c], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00448399
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.00439c95
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041d354
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a38c
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x408a0c
mov esi, 0x4c8c6c
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00439c95
mov eax, dword [ebp - 8]
cmp word [eax], 0x22
pop ecx
mov dword [ebp - 0xc], eax
jne 0x40884b
add eax, 2
mov dword [ebp - 0xc], eax
push 4
push dword [ebp - 0xc]
push 0x4af618
call fcn.0043af58
add esp, 0xc
test al, al
je 0x4088dc
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.0040ea2b
test al, al
je 0x4088dc
push 0x6592
mov ecx, esi
call fcn.0043fddf
mov eax, dword [0x4c8c6c]
push 0x6590
mov word [eax], bx
push dword [0x4c8c6c]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4c8c6c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.0043fddf
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00448399
mov eax, dword [ebp - 0x10]
call fcn.00405b54
lea ecx, [ebp - 0x10]
call fcn.00439cfd
mov ecx, esi
mov byte [0x4cc003], bl
call fcn.00439cfd
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.0043af58
add esp, 0xc
test al, al
je 0x40894f
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.0040ea2b
test al, al
jne 0x40890e
cmp dx, 0x2a
jne 0x40894f
mov ax, word [ecx]
call fcn.0040ea2b
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4c8bea], bl
mov dword [ebp - 0x14], ecx
call fcn.00439c95
cmp byte [ebp - 2], bl
pop ecx
je 0x408a11
push 3
push dword [ebp - 0x14]
push 0x4af60c
call fcn.0043af01
add esp, 0xc
test al, al
je 0x408a11
cmp byte [ebp - 1], 2
jge 0x408985
push ebx
push 0x4c8bd0
mov eax, 0x10000
push eax
push eax
push 0x4c8c8c
push 0x403cdd
mov byte [0x4c8c8c], 0x11
call fcn.00439dc6
add esp, 0x18
test eax, eax
jne 0x408985
mov byte [0x4c8c8c], bl
mov al, byte [0x4c904c]
push edi
mov byte [0x4c8be8], al
call fcn.00403d9c
pop ecx
push ebx
mov ecx, 0x4c9048
call fcn.00430616
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4af60a
mov ecx, 0x4c9088
call fcn.0043fe55
mov eax, dword [0x4c8c30]
cmp eax, ebx
mov dword [0x4c9080], ebx
mov dword [0x4c9084], ebx
mov byte [0x4cc003], bl
mov byte [0x4c8c8d], 0x20
je 0x408a35
push dword [ebp + 0x14]
mov byte [0x4c72b4], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041d354
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a38c
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40882c
or esi, 0xffffffff
jmp 0x408a55
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00448399
push dword [ebp - 0x18]
mov ecx, 0x4c9048
call fcn.0042ad85
lea ecx, [ebp - 0x18]
call fcn.00439cfd
cmp byte [0x4c8e1e], bl
je 0x408a42
call fcn.00410a65
mov ecx, 0x4c9048
call fcn.0043a48c
mov esi, eax
push esi
call fcn.00439dbb
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00439cfd
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10