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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x490250]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov word [ebp - 0x210], ax
call fcn.00457c10
add esp, 0xc
push 0
lea edx, [ebp - 0x23c]
push edx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 0x23c], 0xc
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x402b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreatePipe___failure__error__ld_n
call fcn.00454e90
add eax, 0x40
push eax
call fcn.00455c4a
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454b91
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x218]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0x44
lea eax, [ebp - 0x288]
push 0
push eax
call fcn.00457c10
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
add esp, 0xc
push 0xfffffffffffffff6
mov dword [ebp - 0x288], 0x44
call esi
mov ecx, dword [ebp - 0x21c]
push 0xfffffffffffffff4
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], ecx
call esi
push 0x208
lea edx, [ebp - 0x210]
mov dword [ebp - 0x248], eax
xor eax, eax
push edx
push eax
mov dword [ebp - 0x25c], 0x100
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x288]
push ecx
push 0
push 0
push 8
push 1
push 0
push 0
push str.adb_fork_server_server
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x21c]
push eax
call esi
test edi, edi
jne 0x402c57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcess_failure__error__ld_n
call fcn.00454e90
add eax, 0x40
push eax
call fcn.00455c4a
mov ecx, dword [ebp - 0x218]
add esp, 0xc
push ecx
call esi
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454b91
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x230]
push edx
call esi
mov eax, dword [ebp - 0x22c]
push eax
call esi
mov eax, dword [ebp - 0x218]
push 0
lea ecx, [ebp - 0x220]
push ecx
push 3
lea edx, [ebp - 0x214]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x218]
push ecx
mov edi, eax
call esi
test edi, edi
jne 0x402ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_read_ok_from_ADB_Server__error___ld_n
jmp 0x402b2e
cmp dword [ebp - 0x220], 3
jne 0x402cde
cmp byte [ebp - 0x214], 0x4f
jne 0x402cde
cmp byte [ebp - 0x213], 0x4b
jne 0x402cde
cmp byte [ebp - 0x212], 0xa
jne 0x402cde
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454b91
mov esp, ebp
pop ebp
ret
push str.ADB_server_didnt_ACK_n
call fcn.00454e90
add eax, 0x40
push eax
call fcn.00455c4a
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
or eax, 0xffffffff
pop esi
call fcn.00454b91
mov esp, ebp
pop ebp
ret