Function at 0x402fa0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ebx
call fcn.004049e0
mov dword [ebp - 8], 0
mov dword [0x416310], 0
mov dword [ebp - 0x1c], 0
call fcn.00402cc0
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea esi, [esi]
inc dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov al, byte [eax + edx]
test al, al
jne 0x402fd8
mov ecx, edx
mov edx, dword [ebp - 8]
mov eax, ebp
call fcn.00404a20
mov ecx, dword [ebp - 4]
inc ecx
mov edx, dword [0x416310]
mov eax, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov ebx, dword [ebp - 0x10]
mov edx, eax
mov eax, ebx
call fcn.004043e0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40f320], eax
mov dword [ebp - 0x10], eax
jmp 0x403201
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
dec eax
cmp eax, 0x20
jb 0x403028
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x40320e
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x4030ec
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4030e6
sub al, 0x20
jbe 0x40307a
sub al, 2
je 0x40308a
sub al, 5
je 0x4030b8
jmp 0x4030e6
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x4030f9
inc dword [ebp - 4]
jmp 0x4030e9
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x4030b3
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x4030ae
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x4030a8
mov byte [ebp - 0x18], 0x20
jmp 0x4030e9
mov byte [ebp - 0x18], 0x22
jmp 0x4030e9
inc dword [ebp - 0x10]
jmp 0x4030e9
inc dword [ebp - 4]
jmp 0x4030e9
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x4030e1
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x4030dc
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x4030d6
mov byte [ebp - 0x18], 0x20
jmp 0x4030e9
mov byte [ebp - 0x18], 0x27
jmp 0x4030e9
inc dword [ebp - 0x10]
jmp 0x4030e9
inc dword [ebp - 4]
jmp 0x4030e9
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x40305c
mov eax, dword [ebp - 8]
test eax, eax
je 0x4031fe
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ebp
call fcn.00404a20
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x416310]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
jmp 0x4031eb
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4031db
sub al, 0x20
jbe 0x40314e
sub al, 2
je 0x40316b
sub al, 5
je 0x4031a3
jmp 0x4031db
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x4031f8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x4031e8
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x403194
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40318f
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x403189
mov byte [ebp - 0x18], 0x20
jmp 0x4031e8
mov byte [ebp - 0x18], 0x22
jmp 0x4031e8
inc dword [ebp - 0x10]
jmp 0x4031e8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x4031e8
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x4031cc
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x4031c7
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x4031c1
mov byte [ebp - 0x18], 0x20
jmp 0x4031e8
mov byte [ebp - 0x18], 0x27
jmp 0x4031e8
inc dword [ebp - 0x10]
jmp 0x4031e8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x4031e8
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x403130
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x40302b
mov eax, dword [ebp - 8]
mov dword [0x416320], eax
mov ecx, 0
mov edx, eax
mov eax, ebp
call fcn.00404a20
mov edx, dword [0x416320]
inc edx
shl edx, 2
mov eax, 0x416310
call fcn.00404ac0
mov ebx, dword [ebp - 0x20]
leave
ret