Function at 0x40c6d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4552a1
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x474238]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x10]
mov dword [ebp - 0x54], 0
cmp dword [ecx], 0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], ecx
je 0x40cb46
xor ecx, ecx
mov dword [ebp - 4], 0
xor ebx, ebx
mov dword [ebp - 0x34], ecx
xor esi, esi
mov dword [ebp - 0x40], ecx
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x30], ecx
mov ecx, eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x54], 1
jb 0x40c749
mov ecx, dword [eax]
lea eax, [ebp - 0x30]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x40c86d
xor edi, edi
cmp dword [ebp - 0x30], ebx
jle 0x40c863
xor ebx, ebx
lea esp, [esp]
mov edx, dword [eax + edi*4]
test edx, edx
je 0x40c856
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x3c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c797
sub ecx, dword [ebp - 0x3c]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00402e70
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x40c7fd
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
add esi, 0x18
mov word [ebp - 0x28], ax
mov dword [ebp - 0x44], esi
jmp 0x40c818
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.004050d0
mov eax, dword [ebp - 0x40]
mov ebx, eax
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40c853
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c849
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb6b
push edx
push ecx
call fcn.0041f4b4
add esp, 8
mov eax, dword [ebp - 0x38]
inc edi
cmp edi, dword [ebp - 0x30]
jl 0x40c770
mov ebx, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
cmp edi, eax
je 0x40c88d
mov ecx, edi
call fcn.0040cc10
mov eax, dword [ebp - 0x34]
mov dword [edi], ebx
xor ebx, ebx
mov dword [edi + 4], esi
xor esi, esi
mov dword [edi + 8], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x40c8ea
lea eax, [ebp - 0x48]
push eax
push esi
push ebx
call fcn.00401450
mov ecx, dword [ebp - 0x34]
mov eax, 0x2aaaaaab
sub ecx, ebx
add esp, 0xc
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, ebx
shl ecx, 3
cmp ecx, 0x1000
jb 0x40c8e0
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb6b
push ecx
push ebx
call fcn.0041f4b4
add esp, 8
mov eax, dword [edi + 4]
mov ecx, eax
mov esi, dword [edi]
sub ecx, esi
mov dword [ebp - 0x38], eax
mov eax, 0x2aaaaaab
imul ecx
mov dword [ebp - 0x30], esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jb 0x40cb46
mov eax, dword [ebp - 0x38]
xor ebx, ebx
mov dword [edi + 0x24], 0
mov edx, eax
mov edi, esi
xor esi, esi
cmp dword [ebp + 0xc], ebx
je 0x40c97e
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
mov eax, edi
push eax
call fcn.0040c280
test eax, eax
jne 0x40c97b
mov eax, dword [ebp - 0x2c]
mov ebx, 1
mov edx, dword [ebp - 0x38]
mov esi, ebx
lea ecx, [eax + 0xc]
mov dword [eax + 0x24], 1
mov eax, edi
cmp ecx, eax
je 0x40c97e
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x40c963
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.00402e70
mov ecx, dword [ebp - 0x2c]
mov ebx, dword [ecx + 0x24]
mov esi, ebx
mov edx, dword [ecx + 4]
mov edi, dword [ecx]
jmp 0x40c97e
mov edx, dword [ebp - 0x3c]
sub edx, edi
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x40c9e8
lea eax, [ebx + ebx*2]
cmp dword [edi + eax*8 + 0x10], 2
lea eax, [edi + eax*8]
jb 0x40c9e8
mov edx, dword [eax + 0x14]
mov ecx, eax
cmp edx, 8
jb 0x40c9ae
mov ecx, dword [eax]
cmp word [ecx], 0x2f
je 0x40c9c3
mov ecx, eax
cmp edx, 8
jb 0x40c9bd
mov ecx, dword [eax]
cmp word [ecx], 0x2d
jne 0x40c9e8
mov ecx, dword [ebp - 0x2c]
push eax
call fcn.0040c2c0
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
mov esi, dword [ecx + 0x24]
inc esi
mov dword [ecx + 0x24], esi
mov ebx, esi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
imul ecx
jmp 0x40c987
test esi, esi
jne 0x40ca1a
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x4c]
add ecx, 0x30
cmp ecx, edi
je 0x40cb3f
cmp dword [edi + 0x14], 8
jb 0x40ca05
mov edi, dword [edi]
mov esi, dword [ebp - 0x50]
push dword [esi]
push edi
call fcn.00402e70
mov eax, 1
jmp 0x40cb48
lea eax, [esi + esi*2]
cmp dword [edi + eax*8 - 4], 8
lea ebx, [edi + eax*8]
lea edx, [ebx - 0x18]
jb 0x40ca2d
mov edx, dword [ebx - 0x18]
mov edi, dword [ebp - 0x4c]
mov ecx, edi
cmp dword [edi + 0x14], 8
jb 0x40ca3a
mov ecx, dword [edi]
push dword [ebx - 8]
mov esi, dword [ebp - 0x50]
push edx
push 0
mov esi, dword [esi]
push esi
push ecx
call fcn.004014c0
inc eax
add esp, 0x14
add eax, dword [ebx - 8]
cmp eax, esi
ja 0x40cb3f
sub esi, eax
mov dword [ebp - 0x14], 7
xor ecx, ecx
or ebx, 0xffffffff
cmp esi, 0xffffffff
mov word [ebp - 0x28], cx
cmovb ebx, esi
cmp dword [edi + 0x14], 8
jb 0x40ca7b
mov edi, dword [edi]
lea eax, [edi + eax*2]
mov dword [ebp - 0x3c], eax
cmp ebx, 7
ja 0x40caa3
lea esi, [ebx + ebx]
mov dword [ebp - 0x18], ebx
push esi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436c90
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x28], ax
jmp 0x40cafa
cmp ebx, 0x7ffffffe
ja 0x40cb66
mov esi, ebx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x40cac3
mov esi, 0x7ffffffe
jmp 0x40cacd
mov eax, 0xa
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00402ae0
mov dword [ebp - 0x14], esi
mov edi, eax
lea esi, [ebx + ebx]
mov dword [ebp - 0x18], ebx
push esi
push dword [ebp - 0x3c]
push edi
call fcn.00436710
add esp, 0xc
mov dword [ebp - 0x28], edi
xor eax, eax
mov word [edi + esi], ax
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
push eax
lea ecx, [ecx + 0x30]
call fcn.004020d0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40cb3f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cb35
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb6b
push edx
push ecx
call fcn.0041f4b4
add esp, 8
mov eax, 1
jmp 0x40cb48
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f721
mov esp, ebp
pop ebp
ret 8
call fcn.00402a50
call fcn.0043a32a
int3