Function at 0x40e6b0
Capabilities:
Create process on windows
Print debug messages
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4501e0
mov eax, dword fs:[0]
push eax
sub esp, 0x6d0
mov eax, dword [0x46e224]
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 eax, dword [edi + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + edi + 0x38]
mov esi, dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x67c], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x680]
push eax
call fcn.00407fa0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp - 0x67c], al
test esi, esi
je 0x40e731
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test eax, eax
je 0x40e731
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [ebp - 0x67c]
lea ecx, [edi + 8]
call fcn.0040c5e0
lea ecx, [edi + 8]
call fcn.004028e0
lea eax, [ebp - 0x630]
push eax
lea ecx, [edi + 8]
call fcn.00408960
mov eax, dword [0x470548]
test eax, eax
je 0x40e793
lea ecx, [ebp - 0x630]
push ecx
push dword [edi + 0xa0]
push dword [edi + 0xa8]
push dword [edi + 0xa4]
push dword [edi]
call eax
add esp, 0x14
test al, al
je 0x40e793
lea ecx, [ebp - 0x630]
call fcn.00401bc0
jmp 0x40eb42
test byte [section..data], 2
je 0x40e7b9
cmp dword [ebp - 0x61c], 0x10
lea eax, [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40e7be
cmp dword [edi], 2
jl 0x40e7f8
cmp dword [ebp - 0x61c], 0x10
lea esi, [ebp - 0x630]
push 2
cmovae esi, dword [ebp - 0x630]
call fcn.0043a143
push eax
push 1
push dword [ebp - 0x620]
push esi
call fcn.0043a42c
push 2
call fcn.0043a143
push eax
call fcn.00439de7
add esp, 0x1c
test byte [section..data], 1
je 0x40e8b0
push 0
push 0
call fcn.0040fb50
add esp, 8
cmp dword [0x470558], 0
jne 0x40e82a
push 0xffffffffffffffff
push dword [0x470550]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40e835
mov ecx, dword [0x47054c]
call fcn.0041aed0
call fcn.0040fe60
test al, al
je 0x40e880
push 2
push 0
push 0
push dword [0x470538]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x61c], 0x10
lea ecx, [ebp - 0x67c]
push 0
push ecx
push dword [ebp - 0x620]
lea eax, [ebp - 0x630]
cmovae eax, dword [ebp - 0x630]
push eax
push dword [0x470538]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [0x470558], 0
mov dword [ebp - 4], 0
jne 0x40e89e
push dword [0x470550]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40e8a9
mov ecx, dword [0x47054c]
call fcn.0041aee0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [edi]
cmp eax, 4
jne 0x40e931
mov ecx, 0x400
lea eax, [ebp - 0x630]
cmp dword [ebp - 0x620], ecx
cmovb ecx, dword [ebp - 0x620]
cmp dword [ebp - 0x61c], 0x10
push ecx
cmovae eax, dword [ebp - 0x630]
push eax
lea eax, [ebp - 0x618]
push eax
call fcn.00433d40
lea eax, [ebp - 0x618]
push eax
call fcn.0041e4b0
add esp, 0x10
cmp dword [0x470540], 0
je 0x40e927
lea eax, [ebp - 0x660]
push eax
lea ecx, [edi + 8]
call fcn.00408960
push eax
call dword [0x470540]
add esp, 4
lea ecx, [ebp - 0x660]
jmp 0x40eb07
call fcn.0041e490
jmp 0x40eb0c
cmp eax, 3
jne 0x40eb0c
cmp dword [0x470544], 0
lea ecx, [edi + 8]
je 0x40e967
lea eax, [ebp - 0x660]
push eax
call fcn.00408960
push eax
call dword [0x470544]
add esp, 4
lea ecx, [ebp - 0x660]
jmp 0x40eb07
lea eax, [ebp - 0x678]
push eax
call fcn.00408960
mov esi, eax
cmp dword [esi + 0x10], 0
lea eax, [esi + 0x10]
mov dword [ebp - 0x67c], eax
je 0x40eb01
cmp byte [0x47053f], 0
je 0x40eb01
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0043441a
add esp, 8
test eax, eax
je 0x40e9c4
xor ecx, ecx
mov word [eax + 2], cx
push str.debug_message.exe
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0043af78
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40e9e5
mov esi, dword [esi]
mov eax, dword [ebp - 0x67c]
mov dword [ebp - 0x688], esi
mov eax, dword [eax]
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x688]
push eax
lea eax, [ebp - 0x648]
push eax
call fcn.0041ed00
add esp, 8
cmp dword [ebp - 0x638], 0
je 0x40eaf6
cmp dword [ebp - 0x634], 8
lea ecx, [ebp - 0x698]
push ecx
lea ecx, [ebp - 0x6dc]
mov dword [ebp - 0x6dc], 0x44
push ecx
push 0
push 0
push 0
push 0
push 0
xorps xmm0, xmm0
lea eax, [ebp - 0x648]
cmovae eax, dword [ebp - 0x648]
push 0
push eax
lea eax, [ebp - 0x218]
movlpd qword [ebp - 0x6d8], xmm0
push eax
movlpd qword [ebp - 0x6d0], xmm0
movlpd qword [ebp - 0x6c8], xmm0
movlpd qword [ebp - 0x6c0], xmm0
movlpd qword [ebp - 0x6b8], xmm0
movlpd qword [ebp - 0x6b0], xmm0
movlpd qword [ebp - 0x6a8], xmm0
movlpd qword [ebp - 0x6a0], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40eacf
push 0xffffffffffffffff
push dword [ebp - 0x698]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x694]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x698]
call esi
jmp 0x40eaf6
cmp dword [ebp - 0x634], 8
lea eax, [ebp - 0x648]
push 0x40010
cmovae eax, dword [ebp - 0x648]
push str.Fatal_error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [ebp - 0x648]
call fcn.00402cb0
lea ecx, [ebp - 0x678]
call fcn.00401bc0
mov edx, dword [ebp - 0x61c]
cmp edx, 0x10
jb 0x40eb42
mov ecx, dword [ebp - 0x630]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40eb38
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40eb72
push edx
push ecx
call fcn.00432145
add esp, 8
push dword [edi + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [edi + 8]
call fcn.00406760
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.00432107
mov esp, ebp
pop ebp
ret
call fcn.00436c8f
int3