Function at 0x40d380
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4887b8
mov eax, dword fs:[0]
push eax
sub esp, 0xf4
mov eax, dword [0x4b13d4]
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 esi, edx
mov edi, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x38], 0
movq qword [edi], xmm0
mov dword [ebp - 0xe8], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00408e00
mov dword [edi], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
cmp word [esi], ax
jne 0x40d416
xor ecx, ecx
jmp 0x40d42f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d420
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x50]
call fcn.00402360
push ecx
lea edx, [ebp - 0x50]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x9c]
call fcn.0040e220
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40d45a
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x30], esi
cmp eax, 8
jb 0x40d488
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.004024c0
xor eax, eax
mov dword [ebp - 0x88], 7
mov word [ebp - 0x9c], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x8c], 0
cmp eax, 8
jb 0x40d4bd
inc eax
lea ecx, [ebp - 0x50]
push eax
push dword [ebp - 0x50]
call fcn.004024c0
xor eax, eax
mov dword [ebp - 0x3c], 7
xor ebx, ebx
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], ax
cmp dword [ebp - 0x14], eax
jle 0x40d75d
nop dword [eax]
mov edx, dword [esi + ebx*4]
xor eax, eax
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
cmp word [edx], ax
je 0x40d510
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d501
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x68]
call fcn.00402360
push ecx
lea edx, [ebp - 0x68]
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.0040e220
add esp, 4
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x40d549
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.004024c0
xor eax, eax
mov dword [ebp - 0x54], 7
cmp dword [ebp - 0x18], 8
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 1
push eax
push 0x4a758c
mov dword [ebp - 0x58], 0
call fcn.004758af
add esp, 0xc
test eax, eax
jne 0x40d6ea
push 1
push eax
push 0x4a7590
lea ecx, [ebp - 0x2c]
call fcn.0040d930
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x40d6bf
push dword [ebp - 0x1c]
inc eax
lea ecx, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00408d20
mov esi, eax
push dword [ebp - 0x34]
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 5
push 0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d20
push esi
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.0040da20
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 7
call fcn.0040dab0
push eax
add eax, 0x10
push eax
push ecx
lea eax, [ebp - 0xf0]
mov ecx, edi
push eax
call fcn.004094d0
mov eax, dword [ebp - 0xb8]
cmp eax, 8
jb 0x40d616
inc eax
lea ecx, [ebp - 0xcc]
push eax
push dword [ebp - 0xcc]
call fcn.004024c0
xor eax, eax
mov dword [ebp - 0xb8], 7
mov word [ebp - 0xcc], ax
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xbc], 0
cmp eax, 8
jb 0x40d651
inc eax
lea ecx, [ebp - 0xe4]
push eax
push dword [ebp - 0xe4]
call fcn.004024c0
xor eax, eax
mov dword [ebp - 0xd0], 7
mov word [ebp - 0xe4], ax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xd4], 0
cmp eax, 8
jb 0x40d68c
inc eax
lea ecx, [ebp - 0xb4]
push eax
push dword [ebp - 0xb4]
call fcn.004024c0
xor eax, eax
mov dword [ebp - 0xa0], 7
mov word [ebp - 0xb4], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xa4], 0
cmp eax, 8
jb 0x40d737
inc eax
lea ecx, [ebp - 0x80]
push eax
push dword [ebp - 0x80]
jmp 0x40d732
push ecx
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x84]
call fcn.0040da70
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.0040db10
push eax
add eax, 0x10
push eax
lea eax, [ebp - 0xf8]
jmp 0x40d713
push ecx
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x84]
call fcn.0040da70
add esp, 4
push eax
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.0040db10
push eax
add eax, 0x10
push eax
lea eax, [ebp - 0x100]
push ecx
push eax
mov ecx, edi
call fcn.004094d0
mov eax, dword [ebp - 0x70]
cmp eax, 8
jb 0x40d737
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.004024c0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x40d750
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004024c0
mov esi, dword [ebp - 0x30]
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x40d4e0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
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.004683fe
mov esp, ebp
pop ebp
ret