Function at 0x407fe6
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call fcn.00403e04
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.00445746
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004378b6
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0041bb40
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00418cf5
add esp, 0x18
cmp eax, ebx
mov dword [ebp + 0x10], eax
je 0x40822f
mov esi, 0x4bdc58
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.004378b6
mov eax, dword [ebp - 8]
cmp word [eax], 0x22
pop ecx
mov dword [ebp - 0xc], eax
jne 0x40806e
add eax, 2
mov dword [ebp - 0xc], eax
push 4
push dword [ebp - 0xc]
push 0x4a44cc
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x4080ff
mov eax, dword [ebp - 0xc]
mov ax, word [eax + 8]
call fcn.004820ac
test al, al
je 0x4080ff
push 0x6592
mov ecx, esi
call fcn.0043d3ea
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.0043d3ea
push dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00445746
mov eax, dword [ebp - 0x10]
call fcn.0040573e
lea ecx, [ebp - 0x10]
call fcn.00437884
mov ecx, esi
mov byte [0x4c1003], bl
call fcn.00437884
push 4
push dword [ebp - 8]
push str.MAIN
call fcn.00438aa1
add esp, 0xc
test al, al
je 0x408172
mov ecx, dword [ebp - 8]
add ecx, 8
xor edx, edx
mov dx, word [ecx]
mov eax, edx
call fcn.004820ac
test al, al
jne 0x408131
cmp dx, 0x2a
jne 0x408172
mov ax, word [ecx]
call fcn.004820ac
mov byte [ebp - 2], al
lea eax, [ebp - 0x14]
push eax
mov byte [0x4bdbe6], bl
mov dword [ebp - 0x14], ecx
call fcn.004378b6
cmp byte [ebp - 2], bl
pop ecx
je 0x408234
push 3
push dword [ebp - 0x14]
push 0x4a44c0
call fcn.00438a4a
add esp, 0xc
test al, al
je 0x408234
cmp byte [ebp - 1], 2
jge 0x4081a8
push ebx
push 0x4bdbcc
mov eax, 0x10000
push eax
push eax
push 0x4bdc74
push 0x403bcf
mov byte [0x4bdc74], 0x11
call fcn.004379bf
add esp, 0x18
test eax, eax
jne 0x4081a8
mov byte [0x4bdc74], bl
mov al, byte [0x4bdfa4]
push edi
mov byte [0x4bdbe4], al
call fcn.00403c8e
pop ecx
push ebx
mov ecx, 0x4bdfa0
call fcn.0042e9eb
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x4a44be
mov ecx, 0x4bdfe0
call fcn.0043d460
mov eax, dword [0x4bdc1c]
cmp eax, ebx
mov dword [0x4bdfd8], ebx
mov dword [0x4bdfdc], ebx
mov byte [0x4c1003], bl
mov byte [0x4bdc75], 0x20
je 0x408258
push dword [ebp + 0x14]
mov byte [0x4bc2c0], 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
mov byte [ebp - 1], 2
call fcn.0041bb40
mov edi, dword [ebp + 0x10]
push 5
lea eax, [ebp + 0x10]
push ebx
push eax
call fcn.00418cf5
add esp, 0x14
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x40804f
or esi, 0xffffffff
jmp 0x408278
mov eax, dword [ebp - 8]
add eax, 8
push eax
lea ecx, [ebp - 0x18]
call fcn.00445746
push dword [ebp - 0x18]
mov ecx, 0x4bdfa0
call fcn.0042b9ab
lea ecx, [ebp - 0x18]
call fcn.00437884
cmp byte [0x4bddcf], bl
je 0x408265
call fcn.0040fd33
mov ecx, 0x4bdfa0
call fcn.00437fce
mov esi, eax
push esi
call fcn.004379b4
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.00437884
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10