Function at 0x40df1b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x368
mov eax, dword [0x43a008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x214]
push 0x104
push eax
xor ebx, ebx
mov esi, ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x22c]
call fcn.00408ea7
mov ecx, 0x4234c0
call fcn.0040a57b
push eax
push ecx
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0040e2d8
cmp eax, 0xffffffff
je 0x40e12e
lea ecx, [eax + 1]
cmp ecx, dword [ebp - 0x21c]
ja 0x40dfab
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x21c], ecx
cmovae eax, dword [ebp - 0x22c]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x40dfbe
sub ecx, dword [ebp - 0x21c]
push ebx
push ecx
lea ecx, [ebp - 0x22c]
call fcn.0040bafb
push ecx
push ecx
lea ecx, [ebp - 0x364]
call fcn.0040dbe8
mov eax, dword [esi]
push edi
push ecx
push dword [eax + 8]
push ecx
push 0x40e995
push 0x40e336
lea ecx, [ebp - 0x354]
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::ios_base_____cdecl___class_std::ios_base___]
mov edx, 0x4234ec
mov ecx, eax
call fcn.0040d7fa
lea edx, [ebp - 0x22c]
mov ecx, eax
call fcn.0040d9b5
mov edx, 0x4234c8
mov ecx, eax
call fcn.0040d7fa
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
mov ecx, eax
call fcn.0040d5c3
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___unsigned_long_int_]
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x34c]
call fcn.0040e9a8
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.mozglue.dll__wcsdup]
pop ecx
push ebx
mov esi, eax
lea ecx, [ebp - 0x244]
push 1
mov dword [ebp - 0x24c], esi
call fcn.00408ecd
push 0x40
lea eax, [ebp - 0x2b0]
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x2b4], 0x44
lea edi, [ebp - 0x26c]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2b4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40e116
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0040cf7c
push 0xffffffffffffffff
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne al
cmp esi, 0x102
je 0x40e10b
test al, al
je 0x40e10b
cmp dword [ebp - 0x248], ebx
jne 0x40e10b
mov bl, 1
lea ecx, [ebp - 0x25c]
call fcn.0040cfae
push 0
lea ecx, [ebp - 0x24c]
call fcn.0040e5b0
lea ecx, [ebp - 0x364]
call fcn.0040dd57
push 0
push 1
lea ecx, [ebp - 0x22c]
call fcn.00408ecd
mov ecx, dword [ebp - 8]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405ef7
mov esp, ebp
pop ebp
ret 4