Function at 0x402968
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x407c20], 0
mov dword [ebp - 0x1c], 0
call fcn.00402778
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 0x402995
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.00403de8
push dword [ebp - 4]
mov eax, dword [0x407c20]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.00402f28
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4062b0], eax
mov edi, dword [0x4062b0]
mov dword [ebp - 0x10], edi
jmp 0x402ba8
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jb 0x4029f1
cmp byte [eax], 0x21
jb 0x4029f2
clc
jb 0x4029e1
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x402bb5
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
jmp 0x402a9a
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x402a94
sub al, 0x20
jbe 0x402a88
sub al, 2
je 0x402a5a
sub al, 5
jne 0x402a94
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x402a55
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x402a50
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x402a4a
mov byte [ebp - 0x15], 0x20
jmp 0x402a97
mov byte [ebp - 0x15], 0x27
jmp 0x402a97
inc dword [ebp - 0x10]
jmp 0x402a97
inc dword [ebp - 4]
jmp 0x402a97
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x402a83
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x402a7e
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x402a78
mov byte [ebp - 0x15], 0x20
jmp 0x402a97
mov byte [ebp - 0x15], 0x22
jmp 0x402a97
inc dword [ebp - 0x10]
jmp 0x402a97
inc dword [ebp - 4]
jmp 0x402a97
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x402aa7
inc dword [ebp - 4]
jmp 0x402a97
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x402a17
mov eax, dword [ebp - 8]
test eax, eax
je 0x402ba5
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.00403de8
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [0x407c20]
mov edx, dword [ebp - 8]
mov edi, dword [eax + edx*4]
mov dword [ebp - 0x14], edi
jmp 0x402b92
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x402b82
sub al, 0x20
jbe 0x402b6c
sub al, 2
je 0x402b34
sub al, 5
jne 0x402b82
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x402b25
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x402b20
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x402b1a
mov byte [ebp - 0x15], 0x20
jmp 0x402b8f
mov byte [ebp - 0x15], 0x27
jmp 0x402b8f
inc dword [ebp - 0x10]
jmp 0x402b8f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x402b8f
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x402b5d
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x402b58
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x402b52
mov byte [ebp - 0x15], 0x20
jmp 0x402b8f
mov byte [ebp - 0x15], 0x22
jmp 0x402b8f
inc dword [ebp - 0x10]
jmp 0x402b8f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x402b8f
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x402b9f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x402b8f
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 0x402adb
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 0x4029e4
mov edi, dword [ebp - 8]
mov dword [0x407c30], edi
push 0
push dword [0x407c30]
push ebp
call fcn.00403de8
mov eax, dword [0x407c30]
inc eax
shl eax, 2
push eax
push 0x407c20
call fcn.00403e48
leave
ret