Function at 0x4022f4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x407290], 0
mov dword [ebp - 0x1c], 0
call fcn.00402174
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
inc dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov al, byte [eax + edx]
test al, al
jne 0x402321
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.00402eb4
push dword [ebp - 4]
mov eax, dword [0x407290]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401c44
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405170], eax
mov edi, dword [0x405170]
mov dword [ebp - 0x10], edi
jmp 0x402550
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jb 0x40237d
cmp byte [eax], 0x21
jb 0x40237e
clc
jb 0x40236d
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x40255d
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
jmp 0x402434
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x40242e
sub al, 0x20
jbe 0x402420
sub al, 2
je 0x4023f2
sub al, 5
jne 0x40242e
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x4023ed
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x4023e8
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x4023e2
mov byte [ebp - 0x15], 0x20
jmp 0x402431
mov byte [ebp - 0x15], 0x27
jmp 0x402431
inc dword [ebp - 0x10]
jmp 0x402431
inc dword [ebp - 4]
jmp 0x402431
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x40241b
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x402416
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x402410
mov byte [ebp - 0x15], 0x20
jmp 0x402431
mov byte [ebp - 0x15], 0x22
jmp 0x402431
inc dword [ebp - 0x10]
jmp 0x402431
inc dword [ebp - 4]
jmp 0x402431
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x402441
inc dword [ebp - 4]
jmp 0x402431
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x4023a3
mov eax, dword [ebp - 8]
test eax, eax
je 0x40254d
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.00402eb4
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [0x407290]
mov edx, dword [ebp - 8]
mov edi, dword [eax + edx*4]
mov dword [ebp - 0x14], edi
jmp 0x40253a
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x40252a
sub al, 0x20
jbe 0x402512
sub al, 2
je 0x4024da
sub al, 5
jne 0x40252a
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x4024c8
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x4024c0
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x4024b7
mov byte [ebp - 0x15], 0x20
jmp 0x402537
mov byte [ebp - 0x15], 0x27
jmp 0x402537
inc dword [ebp - 0x10]
jmp 0x402537
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x402537
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x402503
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x4024fe
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x4024f8
mov byte [ebp - 0x15], 0x20
jmp 0x402537
mov byte [ebp - 0x15], 0x22
jmp 0x402537
inc dword [ebp - 0x10]
jmp 0x402537
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x402537
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x402547
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x402537
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x402475
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 0x402370
mov edi, dword [ebp - 8]
mov dword [0x4072a0], edi
push 0
push dword [0x4072a0]
push ebp
call fcn.00402eb4
mov eax, dword [0x4072a0]
inc eax
shl eax, 2
push eax
push 0x407290
call fcn.00402f14
leave
ret