Function at 0x40d218
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 8], 0
mov dword [0x417970], 0
mov dword [ebp - 0x1c], 0
call fcn.0040d098
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 0x40d245
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.0040ef08
push dword [ebp - 4]
mov eax, dword [0x417970]
mov edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
push eax
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040ba28
call sub.kernel32.dll_GetCommandLineA
mov dword [0x415560], eax
mov edi, dword [0x415560]
mov dword [ebp - 0x10], edi
jmp 0x40d458
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jb 0x40d2a1
cmp byte [eax], 0x21
jb 0x40d2a2
clc
jb 0x40d291
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
je 0x40d465
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
jmp 0x40d34a
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x40d344
sub al, 0x20
jbe 0x40d338
sub al, 2
je 0x40d30a
sub al, 5
jne 0x40d344
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x40d305
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x40d300
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x40d2fa
mov byte [ebp - 0x15], 0x20
jmp 0x40d347
mov byte [ebp - 0x15], 0x27
jmp 0x40d347
inc dword [ebp - 0x10]
jmp 0x40d347
inc dword [ebp - 4]
jmp 0x40d347
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x40d333
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40d32e
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x40d328
mov byte [ebp - 0x15], 0x20
jmp 0x40d347
mov byte [ebp - 0x15], 0x22
jmp 0x40d347
inc dword [ebp - 0x10]
jmp 0x40d347
inc dword [ebp - 4]
jmp 0x40d347
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x40d357
inc dword [ebp - 4]
jmp 0x40d347
inc dword [ebp - 4]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
test al, al
jne 0x40d2c7
mov eax, dword [ebp - 8]
test eax, eax
je 0x40d455
push dword [ebp - 4]
push dword [ebp - 8]
push ebp
call fcn.0040ef08
mov byte [ebp - 0x15], 0x20
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
mov eax, dword [0x417970]
mov edx, dword [ebp - 8]
mov edi, dword [eax + edx*4]
mov dword [ebp - 0x14], edi
jmp 0x40d442
mov eax, dword [ebp - 0x10]
mov al, byte [eax]
cmp al, 1
jb 0x40d432
sub al, 0x20
jbe 0x40d41c
sub al, 2
je 0x40d3e4
sub al, 5
jne 0x40d432
mov al, byte [ebp - 0x15]
cmp al, 0x22
je 0x40d3d5
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x27
je 0x40d3d0
mov al, byte [ebp - 0x15]
cmp al, 0x27
jne 0x40d3ca
mov byte [ebp - 0x15], 0x20
jmp 0x40d43f
mov byte [ebp - 0x15], 0x27
jmp 0x40d43f
inc dword [ebp - 0x10]
jmp 0x40d43f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x40d43f
mov al, byte [ebp - 0x15]
cmp al, 0x27
je 0x40d40d
mov eax, dword [ebp - 0x10]
inc eax
mov al, byte [eax]
cmp al, 0x22
je 0x40d408
mov al, byte [ebp - 0x15]
cmp al, 0x22
jne 0x40d402
mov byte [ebp - 0x15], 0x20
jmp 0x40d43f
mov byte [ebp - 0x15], 0x22
jmp 0x40d43f
inc dword [ebp - 0x10]
jmp 0x40d43f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x40d43f
mov al, byte [ebp - 0x15]
cmp al, 0x20
je 0x40d44f
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov bl, byte [edx]
mov byte [eax], bl
inc dword [ebp - 0x14]
jmp 0x40d43f
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 0x40d38b
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 0x40d294
mov edi, dword [ebp - 8]
mov dword [0x417980], edi
push 0
push dword [0x417980]
push ebp
call fcn.0040ef08
mov eax, dword [0x417980]
inc eax
shl eax, 2
push eax
push 0x417970
call fcn.0040ef68
leave
ret