Function at 0x40fb00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.00427e70
test eax, eax
jne 0x40fbf7
test byte [0x55503d], 2
jne 0x40fcbb
mov dword [esp], 0xc
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x40fcaf
mov dword [eax], esi
mov dword [eax + 8], ebx
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov dword [esp], 8
call fcn.00513a20
mov dword [eax], 0x40fd70
mov dword [eax + 4], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40fad0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
je 0x40fbc0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test byte [0x55503d], 2
jne 0x40fc0a
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edi
call fcn.004b2a58
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.00425880
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.00425880
mov dword [esp], str.cannot_create_service_thread_n
call fcn.0042a500
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.cannot_create_service_socket_pair_n
call fcn.0042a500
mov eax, 0xffffffff
jmp 0x40fbb4
call fcn.0042d960
cmp eax, 2
jg 0x40fbb1
mov esi, dword [sym.imp.msvcrt.dll__errno]
lea ebx, [ebp - 0x28]
call esi
mov edx, dword [ebp - 0x1c]
mov edi, dword [eax]
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 4], str.service_thread_started___d:_d
mov dword [esp + 8], edx
call fcn.0042e9a0
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x112
mov dword [esp], str.system_core_adb_services.cpp
call fcn.0042da30
mov ecx, ebx
sub esp, 0x14
call fcn.0042dbb0
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0050d650
mov ecx, ebx
call fcn.0042dc40
mov eax, dword [ebp - 0x24]
mov dword [esp], ebx
lea ecx, [eax - 0xc]
call fcn.004e2330
push eax
call esi
mov dword [eax], edi
jmp 0x40fbb1
mov dword [esp], str.cannot_allocate_stinfo
call fcn.004117e0
call fcn.0042d960
cmp eax, 2
jg 0x40fb2d
mov edx, dword [sym.imp.msvcrt.dll__errno]
lea edi, [ebp - 0x28]
mov dword [ebp - 0x30], edx
call edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp - 0x20]
mov dword [esp + 4], 0x525583
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.0042e9a0
mov ecx, edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x100
mov dword [esp], str.system_core_adb_services.cpp
call fcn.0042da30
mov ecx, edi
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050d650
mov ecx, edi
call fcn.0042dc40
mov edx, dword [ebp - 0x24]
mov dword [esp], edi
lea ecx, [edx - 0xc]
call fcn.004e2330
push edx
mov edx, dword [ebp - 0x30]
call edx
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x40fb2d