Function at 0x402488
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x406c30], 0
mov dword [ebp - 0x1c], 0
call fcn.00402298
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 0x4024b5
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.004037f8
push dword [ebp - 4]
mov eax, dword [0x406c30]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402a48
call sub.kernel32.dll_GetCommandLineA
mov dword [0x405260], eax
mov edi, dword [0x405260]
mov dword [ebp - 0x10], edi
jmp 0x4026c8
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jb 0x402511
cmp byte [eax], 0x21
jb 0x402512
clc
jb 0x402501
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x4026d5
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
jmp 0x4025ba
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4025b4
sub al, 0x20
jbe 0x4025a8
sub al, 2
je 0x40257a
sub al, 5
jne 0x4025b4
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x402575
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x402570
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x40256a
mov byte [ebp - 0x15], 0x20
jmp 0x4025b7
mov byte [ebp - 0x15], 0x27
jmp 0x4025b7
inc dword [ebp - 0x10]
jmp 0x4025b7
inc dword [ebp - 4]
jmp 0x4025b7
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 0x4025b7
mov byte [ebp - 0x15], 0x22
jmp 0x4025b7
inc dword [ebp - 0x10]
jmp 0x4025b7
inc dword [ebp - 4]
jmp 0x4025b7
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x4025c7
inc dword [ebp - 4]
jmp 0x4025b7
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x402537
mov eax, dword [ebp - 8]
test eax, eax
je 0x4026c5
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.004037f8
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [0x406c30]
mov edx, dword [ebp - 8]
mov edi, dword [eax + edx*4]
mov dword [ebp - 0x14], edi
jmp 0x4026b2
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4026a2
sub al, 0x20
jbe 0x40268c
sub al, 2
je 0x402654
sub al, 5
jne 0x4026a2
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x402645
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x402640
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x40263a
mov byte [ebp - 0x15], 0x20
jmp 0x4026af
mov byte [ebp - 0x15], 0x27
jmp 0x4026af
inc dword [ebp - 0x10]
jmp 0x4026af
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x4026af
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x40267d
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x402678
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x402672
mov byte [ebp - 0x15], 0x20
jmp 0x4026af
mov byte [ebp - 0x15], 0x22
jmp 0x4026af
inc dword [ebp - 0x10]
jmp 0x4026af
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x4026af
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x4026bf
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x4026af
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 0x4025fb
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 0x402504
mov edi, dword [ebp - 8]
mov dword [0x406c40], edi
push 0
push dword [0x406c40]
push ebp
call fcn.004037f8
mov eax, dword [0x406c40]
inc eax
shl eax, 2
push eax
push 0x406c30
call fcn.00403858
leave
ret