Function at 0x402ec6
Capabilities:
Accept command line arguments

Disassembly:
mov eax, 0x5967ce
call fcn.0054f4e0
sub esp, 0x38
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 0x3c], ebx
call fcn.004032cb
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00402ad2
pop ecx
mov dword [ebp - 0x40], eax
lea ecx, [eax + 0x10]
mov dword [ebp - 0x44], ecx
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x403120
push edi
call fcn.00402c7e
push eax
lea ecx, [ebp - 0x14]
call fcn.0040258a
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
call fcn.00402c7e
push eax
lea ecx, [ebp - 0x10]
call fcn.0040258a
xor edi, edi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x1c], edi
jle 0x4030d3
push dword [esi + edi*4]
lea ecx, [ebp - 0x18]
call fcn.00402614
push 0x5a7df0
push dword [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.00562278
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4030f3
sub esi, dword [ebp - 0x18]
sar esi, 1
cmp esi, 0xffffffff
je 0x4030f3
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402dec
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402783
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.004032b3
lea ecx, [ebp - 0x14]
call fcn.004034bc
lea ecx, [ebp - 0x14]
call fcn.00403520
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x18]
mov eax, dword [eax - 0xc]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040330a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.00402783
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.004032b3
lea ecx, [ebp - 0x10]
call fcn.004034bc
lea ecx, [ebp - 0x10]
call fcn.00403520
push ebx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00402dec
push 0x22
push eax
call fcn.004027d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
mov bl, al
add ecx, 0xfffffff0
call fcn.004032b3
test bl, bl
je 0x40304b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0040330a
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.00402783
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.004032b3
push 1
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040330a
push 0x22
push eax
call fcn.004027d3
pop ecx
pop ecx
mov ecx, dword [ebp - 0x34]
mov bl, al
add ecx, 0xfffffff0
call fcn.004032b3
test bl, bl
je 0x4030a4
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00402dec
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00402783
mov ecx, dword [ebp - 0x38]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.004032b3
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00403380
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 2
lea ecx, [ecx - 0x10]
call fcn.004032b3
mov esi, dword [ebp - 0x20]
inc edi
cmp edi, dword [ebp - 0x1c]
jl 0x402f42
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004032b3
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004032b3
pop edi
jmp 0x403122
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00402783
lea ecx, [ebp - 0x14]
call fcn.004034bc
lea ecx, [ebp - 0x14]
call fcn.00403520
push 0
push 0x5a7db8
lea ecx, [ebp - 0x10]
call fcn.004033eb
jmp 0x4030a7
xor ebx, ebx
mov ecx, dword [ebp - 0x40]
call fcn.004032b3
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret