Function at 0x403180
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 [0x41ee50], 0
mov dword [ebp - 0x1c], 0
call fcn.00402ec0
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 0x4031b0
mov ecx, edx
mov edx, dword [ebp - 8]
mov eax, ebp
call fcn.00404a60
mov ecx, dword [ebp - 4]
inc ecx
mov edx, dword [0x41ee50]
mov eax, dword [ebp - 8]
mov eax, dword [edx + eax*4]
mov ebx, dword [ebp - 0x10]
mov edx, eax
mov eax, ebx
call fcn.004028d0
call sub.kernel32.dll_GetCommandLineA
mov dword [0x4092c0], eax
mov dword [ebp - 0x10], eax
jmp 0x4033e2
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
dec eax
cmp eax, 0x20
jb 0x403200
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x4033ef
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x4032c9
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4032c3
sub al, 0x20
jbe 0x403252
sub al, 2
je 0x403267
sub al, 5
je 0x403295
jmp 0x4032c3
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x4032d6
inc dword [ebp - 4]
jmp 0x4032c6
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x403290
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40328b
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x403285
mov byte [ebp - 0x18], 0x20
jmp 0x4032c6
mov byte [ebp - 0x18], 0x22
jmp 0x4032c6
inc dword [ebp - 0x10]
jmp 0x4032c6
inc dword [ebp - 4]
jmp 0x4032c6
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x4032be
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x4032b9
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x4032b3
mov byte [ebp - 0x18], 0x20
jmp 0x4032c6
mov byte [ebp - 0x18], 0x27
jmp 0x4032c6
inc dword [ebp - 0x10]
jmp 0x4032c6
inc dword [ebp - 4]
jmp 0x4032c6
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x403234
mov eax, dword [ebp - 8]
test eax, eax
je 0x4033df
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ebp
call fcn.00404a60
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x41ee50]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
jmp 0x4033cc
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x4033bc
sub al, 0x20
jbe 0x40332a
sub al, 2
je 0x40334c
sub al, 5
je 0x403384
jmp 0x4033bc
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x4033d9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x4033c9
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x403375
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x403370
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x40336a
mov byte [ebp - 0x18], 0x20
jmp 0x4033c9
mov byte [ebp - 0x18], 0x22
jmp 0x4033c9
inc dword [ebp - 0x10]
jmp 0x4033c9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x4033c9
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x4033ad
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x4033a8
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x4033a2
mov byte [ebp - 0x18], 0x20
jmp 0x4033c9
mov byte [ebp - 0x18], 0x27
jmp 0x4033c9
inc dword [ebp - 0x10]
jmp 0x4033c9
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x4033c9
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 0x40330c
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 0x403203
mov eax, dword [ebp - 8]
mov dword [0x41ee60], eax
mov ecx, 0
mov edx, eax
mov eax, ebp
call fcn.00404a60
mov edx, dword [0x41ee60]
inc edx
shl edx, 2
mov eax, 0x41ee50
call fcn.00403df0
mov ebx, dword [ebp - 0x20]
leave
ret