Function at 0x409580
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412a28
push 0x410340
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x834
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x74], 0x44
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x44], bx
mov word [ebp - 0x42], bx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
push 0x400
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
mov dword [ebp - 0x30], esi
push str.ExecuteCopiedInstaller64
push 0x419488
push 6
call fcn.0040bbc0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x409645
mov esi, dword [ebp - 0x2c]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0x100
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push 0x419484
push esi
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
call edi
push 0x45b800
push esi
call edi
push 0x419484
push esi
call edi
push str.__l__
push esi
call edi
mov ecx, dword [ebp + 8]
push ecx
push esi
call edi
push 0x419484
push esi
call edi
mov edx, dword [ebp + 0xc]
push edx
push esi
call edi
mov eax, dword [ebp + 0x10]
push eax
push esi
call edi
add esp, 0x40
push esi
push str.ExecuteCopiedInstaller64
push str._s_____s
push 6
call fcn.0040bbc0
add esp, 0x10
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x74]
push edx
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
jne 0x409711
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push ebx
push eax
lea ecx, [ebp - 0x45c]
call fcn.0040c2c0
push eax
push str.ExecuteCopiedInstaller64
push str._s:_CreateProcess_failed:__s
push 6
call fcn.0040bbc0
mov esi, dword [ebp - 0x2c]
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll__local_unwind2
add esp, 0x18
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40974d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
mov esi, eax
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
call edi
test eax, eax
jne 0x4097ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push ebx
push eax
lea ecx, [ebp - 0x844]
call fcn.0040c2c0
push eax
push edi
push str.ExecuteCopiedInstaller64
push str._s:__s___returned_error:__s
push 6
call fcn.0040bbc0
mov esi, dword [ebp - 0x2c]
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 0x1c
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
je 0x4097ca
push eax
push str.ExecuteCopiedInstaller64
push str._s____d
push 6
call fcn.0040bbc0
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
call fcn.004097ef
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret