Function at 0x40d4c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, eax
call fcn.0040a000
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d4d3
sub eax, edx
mov edx, eax
mov eax, edi
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d4e3
sub eax, esi
lea esi, [eax + edx + 8]
push esi
call fcn.00413e95
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x40d4f0
push edi
push ecx
call fcn.0040a000
mov esi, dword [ebp - 4]
add esp, 4
push eax
push 0x427ca8
push esi
call fcn.00413fd6
add esp, 0x10
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
jne 0x40d54b
push 0x20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
test eax, eax
je 0x40d769
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x12
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0x48]
add esp, 4
push eax
push edi
call fcn.004146e0
add esp, 8
test eax, eax
je 0x40d68d
push 4
call fcn.00413e95
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x40d570
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d592
sub eax, edx
lea esi, [eax + 1]
mov edi, edi
push esi
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d5a0
mov edx, ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d5b5
push 0x42c920
call fcn.00403510
add esp, 4
push 0x42c924
call fcn.00403510
mov eax, dword [0x42c5f8]
mov edi, dword [0x42c920]
add esp, 4
inc eax
mov dword [0x42c5f8], eax
lea esi, [eax*4]
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x40d5f1
mov edi, dword [0x42c924]
mov dword [0x42c920], eax
lea ebx, [ebx]
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x40d610
mov edi, dword [ebp - 8]
mov dword [0x42c924], eax
mov eax, dword [0x42c920]
mov dword [esi + eax - 4], ebx
mov ecx, dword [0x42c924]
mov dword [esi + ecx - 4], edi
mov esi, 0x42c920
call fcn.00403610
mov esi, 0x42c924
call fcn.00403610
push 0xb0
call fcn.00404a40
mov edx, dword [0x42c160]
mov eax, dword [edx + 0x2c0]
add esp, 4
push eax
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d766
call eax
mov esi, dword [ebp - 4]
push esi
call fcn.00413e5b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x11
call fcn.00404a40
mov ecx, dword [0x42c160]
mov eax, dword [ecx + 0x44]
add esp, 4
push eax
push edi
call fcn.004146e0
add esp, 8
test eax, eax
je 0x40d769
push 0x44
lea edx, [ebp - 0x60]
push 0
push edx
call fcn.00417250
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
push 0x100
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d6f5
sub eax, edx
lea esi, [eax + 1]
push esi
call fcn.00413e95
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d701
mov edx, ebx
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40d716
push 0x42c91c
call fcn.00403510
mov eax, dword [0x42c5fc]
mov edi, dword [0x42c91c]
add esp, 4
inc eax
mov dword [0x42c5fc], eax
lea esi, [eax*4]
push esi
push edi
call fcn.00413f29
add esp, 8
test eax, eax
je 0x40d745
mov dword [0x42c91c], eax
mov dword [esi + eax - 4], ebx
mov esi, 0x42c91c
call fcn.00403610
mov esi, dword [ebp - 4]
push esi
call fcn.00413e5b
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret