Function at 0x422680
Capabilities:
Create pipe
Create process on windows
Create process suspended
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x500298
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc90
push ebx
push esi
push edi
mov eax, 1
xor ebx, ebx
push ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0x48], 0xc
mov dword [ebp - 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x4226f1
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jb 0x4226e5
mov eax, dword [ebp + 8]
push eax
call fcn.004df8f9
add esp, 4
mov dword [ebp + 0x1c], 0xf
jmp 0x4229c2
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 0x1c]
push 0x3ff
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x49b]
xor eax, eax
push ebx
push ecx
mov dword [ebp - 0x70], 0x100
mov word [ebp - 0x6c], ax
mov byte [ebp - 0x49c], bl
call fcn.004e00a0
add esp, 0xc
push str.Command
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x19
mov edi, 0xf
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.PubFunction::UnPacPackage
mov byte [ecx], bl
call fcn.00404e20
push 4
push 0x57d720
call fcn.0041cec0
mov ecx, dword [ebp + 0x24]
mov esi, 0x10
add esp, 0x28
cmp dword [ebp + 0x38], esi
jae 0x42277e
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x422789
lea eax, [ebp + 8]
push ecx
push eax
lea edx, [ebp - 0x49c]
push str.7z.exe_x___s___o__s___y
push edx
call fcn.004e2afe
add esp, 0x10
lea eax, [ebp - 0x49c]
push eax
push str.unpack_command__s
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0xb
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.PubFunction
mov byte [ecx], bl
call fcn.00404e20
push 4
push 0x57d720
call fcn.0041cec0
add esp, 0x2c
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x9c]
push edx
push ebx
push ebx
push 0x8000000
push 1
push ebx
push ebx
lea eax, [ebp - 0x49c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x422830
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x1c], esi
jb 0x422815
mov ecx, dword [ebp + 8]
push ecx
call fcn.004df8f9
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x4229d9
mov edx, dword [ebp + 0x24]
push edx
jmp 0x4229d1
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov eax, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea ecx, [ebp - 0x14]
push ecx
push 0x7ff
lea edx, [ebp - 0xc9c]
push edx
push eax
mov byte [ebp - 4], 2
call esi
test eax, eax
je 0x4228be
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xc9c]
mov byte [ebp + ecx - 0xc9c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x422883
sub eax, edx
push eax
lea edx, [ebp - 0xc9c]
push edx
lea ecx, [ebp - 0x38]
call fcn.00404d00
push 0xa
call edi
mov edx, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x7ff
lea ecx, [ebp - 0xc9c]
push ecx
push edx
call esi
test eax, eax
jne 0x422870
lea edi, [eax + 0xf]
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x3c]
push eax
push ecx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x54]
push eax
call esi
mov ecx, dword [ebp - 0x10]
push ecx
call esi
mov esi, 0x10
push esi
push ebx
push str.Everything_is_Ok
lea ecx, [ebp - 0x38]
call fcn.00402860
cmp eax, 0xffffffff
je 0x422958
cmp dword [ebp - 0x24], esi
jb 0x422911
mov edx, dword [ebp - 0x38]
push edx
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
cmp dword [ebp + 0x1c], esi
jb 0x42292b
mov eax, dword [ebp + 8]
push eax
call fcn.004df8f9
add esp, 4
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x18], ebx
mov byte [ebp + 8], bl
cmp dword [ebp + 0x38], esi
jb 0x422945
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004df8f9
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x24], esi
jae 0x422963
lea eax, [ebp - 0x38]
push eax
push str.unpack_command_failed:_s
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0xb
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push str.PubFunction
mov byte [ecx], bl
call fcn.00404e20
push 4
push 0x57d720
call fcn.0041cec0
add esp, 0x2c
cmp dword [ebp - 0x24], esi
jb 0x4229a5
mov edx, dword [ebp - 0x38]
push edx
call fcn.004df8f9
add esp, 4
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
cmp dword [ebp + 0x1c], esi
jb 0x4229bf
mov eax, dword [ebp + 8]
push eax
call fcn.004df8f9
add esp, 4
mov dword [ebp + 0x1c], edi
mov byte [ebp + 8], bl
mov dword [ebp + 0x18], ebx
cmp dword [ebp + 0x38], esi
jb 0x4229d9
mov ecx, dword [ebp + 0x24]
push ecx
call fcn.004df8f9
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret