Function at 0x49e890
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5f0
mov eax, dword [0x7e2670]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x5f0], 0
mov dword [ebp - 0x134], 1
mov eax, dword [0x70f098]
mov dword [ebp - 0x1e8], eax
mov ecx, dword [0x70f09c]
mov dword [ebp - 0x1e4], ecx
xor edx, edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 0x1d8], edx
mov eax, dword [0x70f0a0]
mov dword [ebp - 0x1d4], eax
mov cl, byte [0x70f0a4]
mov byte [ebp - 0x1d0], cl
xor edx, edx
mov dword [ebp - 0x1cf], edx
mov dword [ebp - 0x1cb], edx
mov dword [ebp - 0x1c7], edx
mov word [ebp - 0x1c3], dx
mov byte [ebp - 0x1c1], dl
mov ax, word [0x70f0a8]
mov word [ebp - 0x1c0], ax
xor ecx, ecx
mov dword [ebp - 0x1be], ecx
mov dword [ebp - 0x1ba], ecx
mov dword [ebp - 0x1b6], ecx
mov dword [ebp - 0x1b2], ecx
mov word [ebp - 0x1ae], cx
mov edx, dword [0x70f0ac]
mov dword [ebp - 0x1ac], edx
mov ax, word [0x70f0b0]
mov word [ebp - 0x1a8], ax
xor ecx, ecx
mov dword [ebp - 0x1a6], ecx
mov dword [ebp - 0x1a2], ecx
mov dword [ebp - 0x19e], ecx
mov word [ebp - 0x19a], cx
mov edx, dword [0x70f0b4]
mov dword [ebp - 0x198], edx
mov ax, word [0x70f0b8]
mov word [ebp - 0x194], ax
xor ecx, ecx
mov dword [ebp - 0x192], ecx
mov dword [ebp - 0x18e], ecx
mov dword [ebp - 0x18a], ecx
mov word [ebp - 0x186], cx
mov byte [ebp - 0x5e8], 0
push 0x3ff
push 0
lea edx, [ebp - 0x5e7]
push edx
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x5ec], 0
cmp dword [ebp + 0xc], 1
jne 0x49e9f7
mov eax, dword [ebp + 8]
push eax
push str.adb_install__s
lea ecx, [ebp - 0x110]
push ecx
call fcn.0066926d
add esp, 0xc
jmp 0x49ea45
push str.adb_push
lea edx, [ebp - 0x110]
push edx
call fcn.0066926d
add esp, 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00666bb0
add esp, 8
push 0x70f0d8
lea edx, [ebp - 0x110]
push edx
call fcn.00666bb0
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00666bb0
add esp, 8
mov dword [ebp - 0x130], 0
xor edx, edx
mov dword [ebp - 0x12c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 0x114], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x130], 0xc
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 1
push 0x3e8
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x49eab4
xor eax, eax
jmp 0x49ecdd
mov dword [ebp - 0x180], 0
push 0x40
push 0
lea eax, [ebp - 0x17c]
push eax
call fcn.006665c0
add esp, 0xc
mov dword [ebp - 0x124], 0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 0x180], 0x44
lea edx, [ebp - 0x180]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x144], ecx
xor edx, edx
mov word [ebp - 0x150], dx
mov dword [ebp - 0x154], 0x101
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x180]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x49eb64
xor eax, eax
jmp 0x49ecdd
mov eax, dword [ebp - 0x11c]
push eax
push 0x70f0dc
call fcn.0066610b
add esp, 8
call fcn.006684b5
add eax, 0x20
push eax
call fcn.00668459
add esp, 4
cmp dword [ebp - 8], 1
jne 0x49eccd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
lea ecx, [ebp - 0x5ec]
push ecx
push 0xff
lea edx, [ebp - 0x5e8]
push edx
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49ebce
mov dword [ebp - 0x134], 0
lea ecx, [ebp - 0x5e8]
push ecx
push 0x70f0f0
call fcn.0066610b
add esp, 8
push 0x70f0f4
lea edx, [ebp - 0x5e8]
push edx
call fcn.00404520
add esp, 8
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
je 0x49ec0f
mov dword [ebp - 0x134], 1
push 0x70f0fc
lea eax, [ebp - 0x5e8]
push eax
call fcn.00404520
add esp, 8
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
je 0x49ec3c
mov dword [ebp - 0x134], 0
push 0x70f104
lea ecx, [ebp - 0x5e8]
push ecx
call fcn.00404520
add esp, 8
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
je 0x49ec69
mov dword [ebp - 0x134], 0
push 0x70f10c
lea edx, [ebp - 0x5e8]
push edx
call fcn.00404520
add esp, 8
mov dword [ebp - 0x5f0], eax
cmp dword [ebp - 0x5f0], 0
je 0x49ec96
mov dword [ebp - 0x134], 0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1388
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.006665ac
mov esp, ebp
pop ebp
ret