Function at 0x402394
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x4686b0], 0
mov dword [ebp - 0x1c], 0
call fcn.004021a4
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 0x4023c1
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.004031a4
push dword [ebp - 4]
mov eax, dword [0x4686b0]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402c14
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405140], eax
mov edi, dword [0x405140]
mov dword [ebp - 0x10], edi
jmp 0x4025f0
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jb 0x40241d
cmp byte [eax], 0x21
jb 0x40241e
clc
jb 0x40240d
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x4025fd
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
jmp 0x4024d4
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4024ce
sub al, 0x20
jbe 0x4024c0
sub al, 2
je 0x402492
sub al, 5
jne 0x4024ce
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x40248d
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x402488
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x402482
mov byte [ebp - 0x15], 0x20
jmp 0x4024d1
mov byte [ebp - 0x15], 0x27
jmp 0x4024d1
inc dword [ebp - 0x10]
jmp 0x4024d1
inc dword [ebp - 4]
jmp 0x4024d1
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x4024bb
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x4024b6
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x4024b0
mov byte [ebp - 0x15], 0x20
jmp 0x4024d1
mov byte [ebp - 0x15], 0x22
jmp 0x4024d1
inc dword [ebp - 0x10]
jmp 0x4024d1
inc dword [ebp - 4]
jmp 0x4024d1
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x4024e1
inc dword [ebp - 4]
jmp 0x4024d1
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x402443
mov eax, dword [ebp - 8]
test eax, eax
je 0x4025ed
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.004031a4
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [0x4686b0]
mov edx, dword [ebp - 8]
mov edi, dword [eax + edx*4]
mov dword [ebp - 0x14], edi
jmp 0x4025da
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4025ca
sub al, 0x20
jbe 0x4025b2
sub al, 2
je 0x40257a
sub al, 5
jne 0x4025ca
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x402568
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x402560
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x402557
mov byte [ebp - 0x15], 0x20
jmp 0x4025d7
mov byte [ebp - 0x15], 0x27
jmp 0x4025d7
inc dword [ebp - 0x10]
jmp 0x4025d7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x4025d7
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x4025a3
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40259e
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x402598
mov byte [ebp - 0x15], 0x20
jmp 0x4025d7
mov byte [ebp - 0x15], 0x22
jmp 0x4025d7
inc dword [ebp - 0x10]
jmp 0x4025d7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x4025d7
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x4025e7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x4025d7
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 0x402515
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 0x402410
mov edi, dword [ebp - 8]
mov dword [0x4686c0], edi
push 0
push dword [0x4686c0]
push ebp
call fcn.004031a4
mov eax, dword [0x4686c0]
inc eax
shl eax, 2
push eax
push 0x4686b0
call fcn.00403204
leave
ret