Function at 0x404f40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x418000], 0
mov dword [ebp - 0x1c], 0
call fcn.00404c90
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
lea esi, [esi]
inc dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov al, byte [eax + edx]
test al, al
jne 0x404f70
mov ecx, edx
mov edx, dword [ebp - 8]
mov eax, ebp
call fcn.00405c20
mov ecx, dword [ebp - 4]
mov edx, dword [0x418000]
mov eax, dword [ebp - 8]
mov edx, dword [edx + eax*4]
mov eax, dword [ebp - 0x10]
call fcn.00401f20
call sub.kernel32.dll_GetCommandLineA_1
mov dword [0x4157f0], eax
mov dword [ebp - 0x10], eax
jmp 0x40519e
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
dec eax
cmp eax, 0x20
jb 0x404fbc
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x4051ab
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x405085
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x40507f
sub al, 0x20
jbe 0x40500e
sub al, 2
je 0x405023
sub al, 5
je 0x405051
jmp 0x40507f
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x405092
inc dword [ebp - 4]
jmp 0x405082
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x40504c
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x405047
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x405041
mov byte [ebp - 0x18], 0x20
jmp 0x405082
mov byte [ebp - 0x18], 0x22
jmp 0x405082
inc dword [ebp - 0x10]
jmp 0x405082
inc dword [ebp - 4]
jmp 0x405082
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x40507a
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x405075
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x40506f
mov byte [ebp - 0x18], 0x20
jmp 0x405082
mov byte [ebp - 0x18], 0x27
jmp 0x405082
inc dword [ebp - 0x10]
jmp 0x405082
inc dword [ebp - 4]
jmp 0x405082
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x404ff0
mov eax, dword [ebp - 8]
test eax, eax
je 0x40519b
mov ecx, dword [ebp - 4]
mov edx, eax
mov eax, ebp
call fcn.00405c20
mov byte [ebp - 0x18], 0x20
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [0x418000]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x14], eax
jmp 0x405188
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x405178
sub al, 0x20
jbe 0x4050e6
sub al, 2
je 0x405108
sub al, 5
je 0x405140
jmp 0x405178
mov al, byte [ebp - 0x18]
cmp al, 0x20
je 0x405195
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x405185
mov al, byte [ebp - 0x18]
cmp al, 0x27
je 0x405131
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40512c
mov al, byte [ebp - 0x18]
cmp al, 0x22
jne 0x405126
mov byte [ebp - 0x18], 0x20
jmp 0x405185
mov byte [ebp - 0x18], 0x22
jmp 0x405185
inc dword [ebp - 0x10]
jmp 0x405185
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x405185
mov al, byte [ebp - 0x18]
cmp al, 0x22
je 0x405169
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x405164
mov al, byte [ebp - 0x18]
cmp al, 0x27
jne 0x40515e
mov byte [ebp - 0x18], 0x20
jmp 0x405185
mov byte [ebp - 0x18], 0x27
jmp 0x405185
inc dword [ebp - 0x10]
jmp 0x405185
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov al, byte [eax]
mov byte [edx], al
inc dword [ebp - 0x14]
jmp 0x405185
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 0x4050c8
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 0x404fbf
mov eax, dword [ebp - 8]
mov dword [0x418010], eax
mov ecx, 0
mov edx, eax
mov eax, ebp
call fcn.00405c20
mov edx, dword [0x418010]
inc edx
shl edx, 2
mov eax, 0x418000
call fcn.00405c80
leave
ret