Function at 0x406020
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], 0
mov dword [0x40f940], 0
mov dword [ebp - 0x1c], 0
call fcn.00405d60
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 0x406050
mov ecx, edx
mov edx, dword [ebp - 8]
mov eax, ebp
call fcn.00407b70
mov ecx, dword [ebp - 4]
inc ecx
mov edx, dword [0x40f940]
mov eax, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov ebx, dword [ebp - 0x10]
mov edx, eax
mov eax, ebx
call fcn.00406980
call sub.kernel32.dll_GetCommandLineA
mov dword [0x40d8e0], eax
mov dword [ebp - 0x10], eax
jmp 0x406282
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
dec eax
cmp eax, 0x20
jb 0x4060a0
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x40628f
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x406169
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x406163
sub al, 0x20
jbe 0x4060f2
sub al, 2
je 0x406107
sub al, 5
je 0x406135
jmp 0x406163
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x406176
inc dword [ebp - 4]
jmp 0x406166
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x406130
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40612b
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x406125
mov byte [ebp - 0x18], 0x20
jmp 0x406166
mov byte [ebp - 0x18], 0x22
jmp 0x406166
inc dword [ebp - 0x10]
jmp 0x406166
inc dword [ebp - 4]
jmp 0x406166
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x40615e
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x406159
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x406153
mov byte [ebp - 0x18], 0x20
jmp 0x406166
mov byte [ebp - 0x18], 0x27
jmp 0x406166
inc dword [ebp - 0x10]
jmp 0x406166
inc dword [ebp - 4]
jmp 0x406166
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x4060d4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40627f
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ebp
call fcn.00407b70
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x40f940]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
jmp 0x40626c
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x40625c
sub al, 0x20
jbe 0x4061ca
sub al, 2
je 0x4061ec
sub al, 5
je 0x406224
jmp 0x40625c
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x406279
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x406269
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x406215
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x406210
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x40620a
mov byte [ebp - 0x18], 0x20
jmp 0x406269
mov byte [ebp - 0x18], 0x22
jmp 0x406269
inc dword [ebp - 0x10]
jmp 0x406269
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x406269
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x40624d
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x406248
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x406242
mov byte [ebp - 0x18], 0x20
jmp 0x406269
mov byte [ebp - 0x18], 0x27
jmp 0x406269
inc dword [ebp - 0x10]
jmp 0x406269
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x406269
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 0x4061ac
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 0x4060a3
mov eax, dword [ebp - 8]
mov dword [0x40f950], eax
mov ecx, 0
mov edx, eax
mov eax, ebp
call fcn.00407b70
mov edx, dword [0x40f950]
inc edx
shl edx, 2
mov eax, 0x40f940
call fcn.00407c10
mov ebx, dword [ebp - 0x20]
leave
ret