Function at 0x441950
Capabilities:
Create process on windows
Create thread
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x22c0
call fcn.00526390
mov dword [esp + 0x64], 0xc
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 1
lea esi, [esp + 0x64]
push 0
push 0x80
push 3
push esi
push 3
push 0x80000000
push 0x86c640
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x441b51
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x30]
lea edx, [esp + 0x10]
push esi
call fcn.00442170
add esp, 4
mov ebx, 0xffffffff
test al, al
je 0x4420b2
mov dword [esp + 0x28], 0
mov dword [esp + 0xc], 0
lea ecx, [esp + 0x28]
lea edx, [esp + 0xc]
push esi
call fcn.00442170
add esp, 4
mov ebx, 0xffffffff
test al, al
je 0x44207e
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0
lea ecx, [esp + 0x24]
lea edx, [esp + 8]
push esi
call fcn.00442170
add esp, 4
mov ebx, 0xffffffff
test al, al
je 0x44204a
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x441a4d
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x441a68
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x441a83
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
xorps xmm0, xmm0
movups xmmword [esp + 0x94], xmm0
movups xmmword [esp + 0x84], xmm0
movups xmmword [esp + 0x74], xmm0
mov dword [esp + 0xa4], 0
mov dword [esp + 0x70], 0x44
mov eax, dword [esp + 0x14]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xb0], eax
mov dword [esp + 0x9c], 0x100
mov edi, dword [esp + 0x10]
lea esi, [esp + 0xb4]
push 0x208
push 0
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
add eax, 0xfffffefc
cmp eax, 0xfffffefc
ja 0x441bc1
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2bc]
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 0x2bc], 1
je 0x441be5
mov eax, dword [esp + 0x2c4]
jmp 0x441bec
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x2bc]
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 0x2bc], 1
je 0x441b88
mov eax, dword [esp + 0x2c4]
jmp 0x441b8f
lea eax, [esp + 0x2bd]
push eax
push str.adb:_CreateFileW_nul_failed:__s_n
push esi
call fcn.00476b90
add esp, 0xc
test byte [esp + 0x2bc], 1
je 0x441bb7
push dword [esp + 0x2c4]
call fcn.0051c570
add esp, 4
mov ebx, 0xffffffff
jmp 0x4420e6
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x2bc]
push 0x2000
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
test byte [ebx], 1
je 0x441c15
mov ebx, dword [ebx + 8]
jmp 0x441c16
lea eax, [esp + 0x2bd]
push eax
push str.adb:_cannot_get_executable_path:__s_n
push esi
call fcn.00476b90
add esp, 0xc
test byte [esp + 0x2bc], 1
je 0x441e9a
push dword [esp + 0x2c4]
jmp 0x441e92
inc ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x441c48
sub esp, 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
lea edi, [esp + 0x2d4]
mov dword [esp], edi
mov dword [esp + 8], str.adb__L__s_fork_server_server___reply_fd__d___one_device__s
call fcn.004422f0
add esp, 0x18
jmp 0x441c6d
sub esp, 0x14
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], ebx
lea edi, [esp + 0x2d0]
mov dword [esp], edi
mov dword [esp + 8], str.adb__L__s_fork_server_server___reply_fd__d
call fcn.004422f0
add esp, 0x14
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
sub esp, 0x28
lea eax, [esp + 0x78]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x20], eax
movaps xmm0, xmmword [0x86c0c0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x441e10
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x54], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], 0
test eax, eax
je 0x441cf9
lea ecx, [esp + 0x14]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
test eax, eax
je 0x441d13
lea ecx, [esp + 0x10]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test eax, eax
je 0x441d2d
lea ecx, [esp + 0xc]
push eax
call fcn.0046fea0
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
test eax, eax
je 0x441d47
lea ecx, [esp + 8]
push eax
call fcn.0046fea0
push 0
push 0
push dword [esp + 0x30]
push 0x442320
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x441e3e
mov esi, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], 0
push 0
push 0
push dword [esp + 0x2c]
push 0x4423a0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x441ea4
mov edi, eax
mov dword [esp + 0x24], 0
mov byte [esp + 0x2e], 0
mov word [esp + 0x2c], 0
mov dword [esp + 0x48], 0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x2c]
push 0
push eax
push 3
push ecx
push dword [esp + 0x40]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov dword [esp + 0x34], eax
je 0x441eda
cmp dword [esp + 0x48], 3
jne 0x441dfd
movzx eax, word [esp + 0x2c]
xor eax, 0x4b4f
movzx ecx, byte [esp + 0x2e]
xor ecx, 0xa
or cx, ax
je 0x441f86
mov ecx, dword [esp + 0x58]
call fcn.00442420
mov ebx, 0xffffffff
jmp 0x44200c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 0x18], 1
je 0x441e74
mov eax, dword [esp + 0x20]
jmp 0x441e78
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push str.adb:_cannot_create_thread:__s_n
push esi
call fcn.00476b90
add esp, 0xc
mov ebx, 0xffffffff
jmp 0x442034
lea eax, [esp + 0x19]
push eax
push str.adb:_CreateProcessW_failed:__s_n
push esi
call fcn.00476b90
add esp, 0xc
test byte [esp + 0x18], 1
je 0x441e9a
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
mov ebx, 0xffffffff
jmp 0x44204a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov edi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
call fcn.00479500
add esp, 4
push eax
push str.adb:_cannot_create_thread:__s_n
push edi
call fcn.00476b90
add esp, 0xc
mov ebx, 0xffffffff
jmp 0x44201e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp ebx, 0x6d
jne 0x441f07
push 0x86c340
push str.could_not_read_ok_from_ADB_Server_s_n
push eax
call fcn.00476b90
add esp, 0xc
jmp 0x441f86
mov dword [esp + 0x60], eax
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004bbe60
add esp, 8
test byte [esp + 0x3c], 1
je 0x441f26
mov eax, dword [esp + 0x44]
jmp 0x441f2a
lea eax, [esp + 0x3d]
lea ecx, [esp + 0x18]
push eax
push 0x86c7c4
push ecx
call fcn.004ba8a0
add esp, 0xc
test byte [esp + 0x18], 1
je 0x441f4a
mov eax, dword [esp + 0x20]
jmp 0x441f4e
lea eax, [esp + 0x19]
push eax
push str.could_not_read_ok_from_ADB_Server_s_n
push dword [esp + 0x68]
call fcn.00476b90
add esp, 0xc
test byte [esp + 0x18], 1
je 0x441f73
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
test byte [esp + 0x3c], 1
je 0x441f86
push dword [esp + 0x44]
call fcn.0051c570
add esp, 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
lea eax, [esp + 0x3c]
push 0x3a98
push 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x442003
mov ebx, eax
cmp eax, 0x102
jne 0x44210a
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push str.adb:_timed_out_waiting_for_threads_to_finish_reading_from_ADB_server_n
push eax
call fcn.00476b90
add esp, 8
push 0
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0xffffffff
cmp eax, 0x102
jne 0x44200c
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esp + 0x58]
push str.adb:_server_is_running_with_process_id__lu_n
push eax
call fcn.00476b90
add esp, 0xc
jmp 0x44200c
xor ebx, ebx
cmp dword [esp + 0x34], 1
sbb ebx, ebx
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push edi
call fcn.0046fea0
mov edi, dword [esp + 0x38]
mov dword [esp + 0x18], 0
lea ecx, [esp + 0x18]
push esi
call fcn.0046fea0
mov dword [esp + 0x4c], 0
test edi, edi
je 0x44204a
lea ecx, [esp + 0x4c]
push edi
call fcn.0046fea0
mov eax, dword [esp + 8]
mov dword [esp + 8], 0
test eax, eax
je 0x442064
lea ecx, [esp + 8]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test eax, eax
je 0x44207e
lea ecx, [esp + 0x24]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0xc]
mov dword [esp + 0xc], 0
test eax, eax
je 0x442098
lea ecx, [esp + 0xc]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], 0
test eax, eax
je 0x4420b2
lea ecx, [esp + 0x28]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], 0
test eax, eax
je 0x4420cc
lea ecx, [esp + 0x10]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test eax, eax
je 0x4420e6
lea ecx, [esp + 0x30]
push eax
call fcn.0046fea0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], 0
test eax, eax
je 0x442100
lea ecx, [esp + 0x14]
push eax
call fcn.0046fea0
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.004bbe60
add esp, 8
test byte [esp + 0x18], 1
je 0x44213a
mov eax, dword [esp + 0x20]
jmp 0x44213e
lea eax, [esp + 0x19]
mov ecx, dword [esp + 0x34]
push eax
push ebx
push str.adb:_unexpected_result_waiting_for_threads:__lu:__s_n
push ecx
call fcn.00476b90
add esp, 0x10
test byte [esp + 0x18], 1
je 0x441e06
push dword [esp + 0x20]
call fcn.0051c570
add esp, 4
jmp 0x441e06