Function at 0x414800
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0042edf0
test eax, eax
jne 0x414a67
test byte [0x56103d], 2
jne 0x4148c4
mov dword [esp], 0xc
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x414a7d
mov dword [eax], ebx
mov dword [eax + 8], esi
mov eax, dword [ebp - 0x1c]
mov dword [edi + 4], eax
mov dword [esp], 8
call fcn.00520de0
mov dword [eax], 0x414a90
mov dword [eax + 4], edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4147d0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
je 0x414a30
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
test byte [0x56103d], 2
jne 0x414980
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00435450
cmp eax, 2
jg 0x41482d
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], 0x5311da
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 8], ecx
mov dword [esp], eax
call fcn.00435b60
mov ecx, edi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf3
mov dword [esp], str.system_core_adb_services.cpp
call fcn.00434b70
mov ecx, edi
sub esp, 0x14
call fcn.00434cf0
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.0051a330
mov ecx, edi
call fcn.00434d50
mov edx, dword [ebp - 0x24]
mov dword [esp], edi
lea ecx, [edx - 0xc]
call fcn.004ede60
push edx
mov edx, dword [ebp - 0x30]
call edx
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
jmp 0x41482d
call fcn.00435450
cmp eax, 2
jg 0x4148b9
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.00435b60
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x105
mov dword [esp], str.system_core_adb_services.cpp
call fcn.00434b70
mov ecx, ebx
sub esp, 0x14
call fcn.00434cf0
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.0051a330
mov ecx, ebx
call fcn.00434d50
mov eax, dword [ebp - 0x24]
mov dword [esp], ebx
lea ecx, [eax - 0xc]
call fcn.004ede60
push eax
call esi
mov dword [eax], edi
jmp 0x4148b9
mov dword [esp], edi
call fcn.004bdca8
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call fcn.0042d2a0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.0042d2a0
mov dword [esp], str.cannot_create_service_thread_n
call fcn.00431560
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.00431560
mov eax, 0xffffffff
jmp 0x4148bc
mov dword [esp], str.cannot_allocate_stinfo
call fcn.00416650
lea esi, [esi]
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov edx, dword [ebx + 4]
mov dword [esp], eax
mov dword [esp + 4], str.service__d
mov dword [esp + 8], edx
call fcn.00435b60
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x52bf90
jne 0x414add
mov eax, dword [ebx + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [ebx]
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 4]
leave
jmp fcn.004bdca8
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x414ac2
lea eax, [ebp - 0xd]
mov dword [esp], eax
call fcn.004ede40
push eax
jmp 0x414ac2