Function at 0x40b970
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b762
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc0
lea eax, [ebp - 0xf0]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.00489f10
add esp, 8
lea ecx, [ebp - 0xf0]
call fcn.0044f4e0
push ecx
push 8
push str._error_log.txt
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.00452910
test eax, eax
lea ecx, [ebp - 0xf0]
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
jne 0x40ba02
add ecx, eax
mov eax, dword [ecx + 0xc]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x40ba11
or eax, 4
jmp 0x40ba11
add ecx, eax
mov edx, 4
xor eax, eax
cmp dword [ecx + 0x38], eax
cmove eax, edx
push 0
push eax
call fcn.00407930
xor eax, eax
push 0x44
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x148]
push eax
call fcn.00489f10
lea eax, [ebp - 0x14]
mov dword [ebp - 0x148], 0x44
add esp, 0xc
mov dword [ebp - 0x140], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x11c], 0x80
mov edx, str.7za.exe_x
lea ecx, [ebp - 0x1b0]
push eax
call fcn.00457080
add esp, 4
push str.__aoa___o._
mov edx, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x168]
call fcn.00457170
add esp, 4
lea ecx, [ebp + 0x20]
mov byte [ebp - 4], 5
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00457210
add esp, 4
cmp dword [ebp - 0x154], 8
jb 0x40baaa
push dword [ebp - 0x168]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp - 0x154], 7
mov dword [ebp - 0x158], 0
mov word [ebp - 0x168], ax
mov byte [ebp - 4], 8
cmp dword [ebp - 0x19c], 8
jb 0x40bae2
push dword [ebp - 0x1b0]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp - 0x19c], 7
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x1a0], 0
lea ecx, [ebp - 0x1c8]
mov word [ebp - 0x1b0], ax
call fcn.00468940
mov dword [ebp - 0x150], eax
lea edx, [ebp + 0x20]
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x180]
call fcn.00468940
mov edi, eax
lea edx, [ebp + 8]
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x198]
call fcn.00468940
mov esi, eax
mov edx, str.arhive_unpack_name
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0xe0]
call fcn.00456c60
mov edx, esi
mov ecx, eax
call fcn.00456a00
mov edx, str._adress
mov ecx, eax
call fcn.00456c60
mov edx, edi
mov ecx, eax
call fcn.00456a00
mov edx, str._arhivez
mov ecx, eax
call fcn.00456c60
mov edx, dword [ebp - 0x150]
mov ecx, eax
call fcn.00456a00
push eax
call fcn.00456f10
add esp, 4
cmp dword [ebp - 0x184], 0x10
jb 0x40bba6
push dword [ebp - 0x198]
call fcn.00485250
add esp, 4
cmp dword [ebp - 0x16c], 0x10
mov dword [ebp - 0x184], 0xf
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
jb 0x40bbd8
push dword [ebp - 0x180]
call fcn.00485250
add esp, 4
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1b4], 0x10
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], 0
mov byte [ebp - 0x180], 0
jb 0x40bc0e
push dword [ebp - 0x1c8]
call fcn.00485250
add esp, 4
mov eax, dword [ebp - 0x1c]
lea eax, [eax*2 + 2]
push eax
push 0xc
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov edi, eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
push edi
push str.7za.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0xf8]
mov edx, str.arhive_unpack_7za
push eax
push ecx
lea ecx, [ebp - 0xe0]
mov dword [0x5678f0], eax
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044cb20
push eax
call fcn.00456f10
add esp, 4
cmp dword [0x5678f0], 0
jne 0x40bca8
mov byte [ebp - 0x149], 0
jmp 0x40bd18
push 0xffffffffffffffff
push dword [ebp - 0x100]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x5678f0]
mov edx, str.arhive_unpack_7za_end1
push ecx
lea ecx, [ebp - 0xe0]
call fcn.00456c60
add esp, 4
mov ecx, eax
call fcn.0044cb20
push eax
call fcn.00456f10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push dword [ebp - 0x100]
call esi
push dword [ebp - 0xfc]
call esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xorps xmm0, xmm0
mov byte [ebp - 0x149], 1
movdqu xmmword [ebp - 0x100], xmm0
cmp dword [ebp - 0x18], 8
jb 0x40bd29
push dword [ebp - 0x2c]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
call fcn.0044f600
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], vtable.std::ios_base.0
push eax
call fcn.0046ca3b
add esp, 4
cmp dword [ebp + 0x1c], 8
jb 0x40bd6d
push dword [ebp + 8]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
cmp dword [ebp + 0x34], 8
mov dword [ebp + 0x18], 0
mov word [ebp + 8], ax
jb 0x40bd92
push dword [ebp + 0x20]
call fcn.00485250
add esp, 4
xor eax, eax
mov dword [ebp + 0x34], 7
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp + 0x30], 0
mov word [ebp + 0x20], ax
jb 0x40bdb7
push dword [ebp + 0x38]
call fcn.00485250
add esp, 4
mov al, byte [ebp - 0x149]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484516
mov esp, ebp
pop ebp
ret