Function at 0x408f48
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 1
call fcn.00404056
xor ebx, ebx
cmp dword [0x4e2c88], ebx
pop ecx
jne 0x408f6f
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x408f6f
mov dword [0x4e2c88], eax
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x1c]
call fcn.004505eb
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0043fe57
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041c7be
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a9b6
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40919d
mov esi, 0x4e2cc8
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.0043fe57
mov eax, dword [ebp - 8]
cmp word [eax], 0x22
pop ecx
mov dword [ebp - 0xc], eax
jne 0x408fdc
add eax, 2
mov dword [ebp - 0xc], eax
push 4
push dword [ebp - 0xc]
push 0x4c78d0
call fcn.00441277
add esp, 0xc
test al, al
je 0x40906d
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.004b1b03
test al, al
je 0x40906d
push 0x6592
mov ecx, esi
call fcn.004465d3
mov eax, dword [0x4e2cc8]
push 0x6590
mov word [eax], bx
push dword [0x4e2cc8]
push 0x2713
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadStringW]
push dword [0x4e2cc8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
inc eax
push eax
mov ecx, esi
call fcn.004465d3
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004505eb
mov eax, dword [ebp - 0x10]
call fcn.00406379
lea ecx, [ebp - 0x10]
call fcn.0043fe25
mov ecx, esi
mov byte [0x4e6003], bl
call fcn.0043fdff
push 4
push dword [ebp - 8]
push 0x4c78c8
call fcn.00441277
add esp, 0xc
test al, al
je 0x4090e0
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.004b1b03
test al, al
jne 0x40909f
cmp dx, 0x2a
jne 0x4090e0
mov ax, word [ecx]
call fcn.004b1b03
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4e2c3e], bl
mov dword [ebp - 0x14], ecx
call fcn.0043fe57
cmp byte [ebp - 2], bl
pop ecx
je 0x4091a2
push 3
push dword [ebp - 0x14]
push 0x4c78c4
call fcn.00441220
add esp, 0xc
test al, al
je 0x4091a2
cmp byte [ebp - 1], 2
jge 0x409116
push ebx
push 0x4e2c24
mov eax, 0x10000
push eax
push eax
push 0x4e2ce8
push 0x403e21
mov byte [0x4e2ce8], 0x11
call fcn.0043ff9c
add esp, 0x18
test eax, eax
jne 0x409116
mov byte [0x4e2ce8], bl
mov al, byte [0x4e3114]
push edi
mov byte [0x4e2c3c], al
call fcn.00403ee0
pop ecx
push ebx
mov ecx, 0x4e3110
call fcn.00436e8d
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4c78c2
mov ecx, 0x4e3150
call fcn.00446649
mov eax, dword [0x4e2c8c]
cmp eax, ebx
mov dword [0x4e3148], ebx
mov dword [0x4e314c], ebx
mov byte [0x4e6003], bl
mov byte [0x4e2ce9], 0x20
je 0x4091c6
push dword [ebp + 0x14]
mov byte [0x4e12e4], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041c7be
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.0041a9b6
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x408fbd
or esi, 0xffffffff
jmp 0x4091e6
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.004505eb
push dword [ebp - 0x18]
mov ecx, 0x4e3110
call fcn.00430fac
lea ecx, [ebp - 0x18]
call fcn.0043fe25
cmp byte [0x4e2e86], bl
je 0x4091d3
call fcn.00420d0c
mov ecx, 0x4e3110
call fcn.00440727
mov esi, eax
push esi
call fcn.0043ff91
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.0043fe25
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10