Function at 0x40de08
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff5c
mov eax, 0x517708
push ebx
push esi
push edi
lea edi, [ebp - 0x50]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
call fcn.00509108
mov word [edi + 0x10], 0x18
mov edx, 0x5163b2
lea eax, [ebp - 4]
call fcn.005148b4
inc dword [edi + 0x1c]
lea edx, [ebp - 0x94]
mov word [edi + 0x10], 0xc
push 0x44
push 0
push edx
call fcn.00508c67
mov dword [ebp - 0x94], 0x44
mov ecx, dword [ebx + 0x30]
add esp, 0xc
mov eax, dword [ecx + esi*4]
cmp byte [eax + 0x1b], 0
je 0x40df2f
mov dword [ebp - 0x68], 1
mov word [ebp - 0x64], 0
mov word [edi + 0x10], 0x24
xor edx, edx
lea ecx, [ebp - 8]
mov dword [ebp - 8], edx
inc dword [edi + 0x1c]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + esi*4]
lea eax, [ebx + 4]
add edx, 0x14
call fcn.00514a04
lea edx, [ebp - 8]
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ecx, [ebp - 0xc]
inc dword [edi + 0x1c]
mov eax, str.msiexec.exe__quiet__i__
call fcn.00514b30
lea edx, [ebp - 0xc]
push edx
mov edx, 0x5163cb
lea eax, [ebp - 0x10]
call fcn.005148b4
inc dword [edi + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
inc dword [edi + 0x1c]
lea ecx, [ebp - 0x14]
pop eax
call fcn.00514a04
lea edx, [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.005149f0
dec dword [edi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.005149c8
jmp 0x40dfdc
mov word [edi + 0x10], 0x30
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
inc dword [edi + 0x1c]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + esi*4]
lea eax, [ebx + 4]
add edx, 0x14
call fcn.00514a04
lea edx, [ebp - 0x18]
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
inc dword [edi + 0x1c]
mov eax, str.msiexec.exe__i__
call fcn.00514b30
lea edx, [ebp - 0x1c]
push edx
mov edx, 0x5163de
lea eax, [ebp - 0x20]
call fcn.005148b4
inc dword [edi + 0x1c]
xor eax, eax
mov dword [ebp - 0x24], eax
lea edx, [ebp - 0x20]
inc dword [edi + 0x1c]
lea ecx, [ebp - 0x24]
pop eax
call fcn.00514a04
lea edx, [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.005149f0
dec dword [edi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.005149c8
push 0x10
push 0
lea ecx, [ebp - 0xa4]
push ecx
call fcn.00508c67
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
lea edx, [ebp - 0x94]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
cmp dword [ebp - 4], 0
je 0x40e014
mov ecx, dword [ebp - 4]
jmp 0x40e019
mov ecx, 0x5163e0
push ecx
push 0
call sub.KERNEL32.DLL_CreateProcessW
test eax, eax
setne al
and eax, 1
mov word [edi + 0x10], 0xc
test al, al
jne 0x40e0a2
mov edx, dword [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0xa0]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov word [edi + 0x10], 0x3c
xor edx, edx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], edx
inc dword [edi + 0x1c]
mov eax, dword [ebx + 0x30]
mov edx, dword [eax + esi*4]
lea eax, [ebx + 4]
add edx, 0x14
call fcn.00514a04
lea eax, [ebp - 0x28]
mov eax, dword [eax]
call fcn.00514584
dec dword [edi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005149c8
mov ecx, dword [edi]
mov dword fs:[0], ecx
jmp 0x40e11d
push 0xffffffffffffffff
mov eax, dword [ebp - 0xa4]
push eax
call sub.KERNEL32.DLL_WaitForSingleObject
mov edx, dword [ebp - 0xa4]
push edx
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 0xa0]
push ecx
call sub.KERNEL32.DLL_CloseHandle
mov word [edi + 0x10], 0x48
xor eax, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
lea eax, [ebx + 4]
inc dword [edi + 0x1c]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + esi*4]
add edx, 0x14
call fcn.00514a04
lea eax, [ebp - 0x2c]
mov eax, dword [eax]
call fcn.00514584
dec dword [edi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.005149c8
dec dword [edi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.005149c8
mov ecx, dword [edi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret