Function at 0x40cd20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x21c]
push ebx
push esi
push edi
mov dword [ebp - 0x210], 0
xor eax, eax
push fcn.0040cd10
push ebp
push 0x40dec0
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetCommandLineW
mov dword [ebp - 0x218], eax
lea ecx, [ebp - 0x210]
xor dx, dx
mov eax, dword [ebp - 0x218]
call fcn.004077e0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40cd76
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x214], eax
call fcn.0040a420
mov dword [0x413240], eax
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x40cd98
mov eax, 0x41a540
mov edx, dword [0x413240]
mov ecx, dword [ebp - 0x214]
call fcn.00402660
mov eax, dword [ebp - 0x218]
mov edx, 0xa
mov edi, 2
cmp word [eax], 0
cmovne edi, edx
lea eax, [edi*4]
call fcn.0040a420
mov dword [0x41a9f0], eax
push 0x105
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov dword [ebp - 0x214], eax
mov eax, dword [ebp - 0x218]
xor cx, cx
mov edx, 0x7fffffff
call dword [0x413470]
add eax, dword [ebp - 0x214]
lea eax, [eax + eax + 4]
call fcn.0040a420
mov esi, eax
mov eax, dword [ebp - 0x214]
lea ecx, [eax + eax]
mov edx, esi
lea eax, [ebp - 0x20c]
call fcn.00402660
mov eax, dword [0x41a9f0]
mov dword [eax], esi
mov eax, dword [ebp - 0x214]
shl eax, 1
add esi, eax
mov dword [0x41a4a0], 0
mov byte [ebp - 0x21c], 0x20
nop dword [eax + eax]
mov eax, dword [ebp - 0x218]
mov bx, word [eax]
add dword [ebp - 0x218], 2
mov ax, bx
sub ax, 0x20
jbe 0x40ce90
sub ax, 2
je 0x40cf20
sub ax, 5
je 0x40cf70
jmp 0x40cfc0
cmp byte [ebp - 0x21c], 0x20
sete al
test bx, bx
sete dl
or al, dl
je 0x40cfc0
mov eax, dword [0x41a9f0]
mov edx, dword [0x41a4a0]
cmp esi, dword [eax + edx*4]
je 0x40cf08
mov word [esi], 0
add esi, 2
add dword [0x41a4a0], 1
cmp edi, dword [0x41a4a0]
jne 0x40cee6
mov eax, edi
shr eax, 1
add edi, eax
lea edx, [edi*4]
mov eax, 0x41a9f0
call fcn.0040a8c0
test bx, bx
je 0x40cfd8
mov edx, dword [0x41a9f0]
mov eax, dword [0x41a4a0]
mov dword [edx + eax*4], esi
jmp 0x40ce50
test bx, bx
je 0x40cfd8
jmp 0x40ce50
cmp byte [ebp - 0x21c], 0x27
je 0x40cfc0
mov eax, dword [ebp - 0x218]
cmp word [eax], 0x22
je 0x40cf60
cmp byte [ebp - 0x21c], 0x22
jne 0x40cf50
mov byte [ebp - 0x21c], 0x20
jmp 0x40ce50
mov byte [ebp - 0x21c], 0x22
jmp 0x40ce50
add dword [ebp - 0x218], 2
jmp 0x40cfc0
cmp byte [ebp - 0x21c], 0x22
je 0x40cfc0
mov eax, dword [ebp - 0x218]
cmp word [eax], 0x27
je 0x40cfb0
cmp byte [ebp - 0x21c], 0x27
jne 0x40cfa0
mov byte [ebp - 0x21c], 0x20
jmp 0x40ce50
mov byte [ebp - 0x21c], 0x27
jmp 0x40ce50
add dword [ebp - 0x218], 2
nop word [eax + eax]
cmp dword [0x41a4a0], 0
je 0x40ce50
mov word [esi], bx
add esi, 2
jmp 0x40ce50
mov eax, dword [0x41a9f0]
mov edx, dword [0x41a4a0]
mov dword [eax + edx*4], 0
mov eax, dword [0x41a4a0]
lea edx, [eax*4 + 4]
mov eax, 0x41a9f0
call fcn.0040a8c0
mov eax, dword [0x41a9f0]
mov eax, dword [eax]
mov edx, esi
sub edx, eax
mov eax, dword [0x41a9f0]
call fcn.0040a8c0
mov eax, dword [0x41a4a0]
lea eax, [eax*4 + 4]
call fcn.0040a420
mov dword [0x41a4b0], eax
mov eax, dword [0x41a4a0]
lea ebx, [eax - 1]
test ebx, ebx
jl 0x40d09a
mov esi, 0xffffffff
nop dword [eax]
add esi, 1
mov eax, dword [0x41a9f0]
mov eax, dword [eax + esi*4]
lea ecx, [ebp - 0x210]
xor dx, dx
call fcn.004077e0
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x40d066
mov eax, dword [eax - 4]
add eax, 1
mov dword [ebp - 0x214], eax
call fcn.0040a420
mov edx, dword [0x41a4b0]
mov dword [edx + esi*4], eax
mov eax, dword [0x41a4b0]
mov edx, dword [eax + esi*4]
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
call fcn.00402660
cmp esi, ebx
jl 0x40d040
mov eax, dword [0x41a4b0]
mov edx, dword [0x41a4a0]
mov dword [eax + edx*4], 0
xor eax, eax
pop edx
add esp, 0xc
mov dword fs:[eax], edx
mov eax, ebp
call fcn.0040cd10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret