Function at 0x40f090
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
lea esi, [esi]
mov ebx, dword [0x5600a0]
test ebx, ebx
je 0x40f173
xor esi, esi
jmp 0x40f0b8
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f0e8
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x10], 0
test eax, eax
je 0x40f0b2
mov dword [esp], ebx
call eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40f0b2
mov eax, dword [ebx + 4]
lea edx, [ebx + 0xc]
mov esi, 1
call fcn.0040c210
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40f0b8
test esi, esi
je 0x40f1a2
mov ebx, dword [0x5600a0]
test ebx, ebx
je 0x40f190
nop
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x40f11b
mov dword [esp], ebx
call eax
test eax, eax
je 0x40f11b
mov eax, dword [ebx + 4]
lea edx, [ebx + 0xc]
call fcn.0040c210
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40f100
mov eax, dword [0x51100c]
cmp eax, 0x51100c
je 0x40f0a0
mov edx, dword [eax]
xor ecx, ecx
mov dword [edx + 4], 0x51100c
mov dword [0x51100c], edx
movzx edx, word [eax + 0x12]
mov word [eax + 0x12], cx
mov ecx, dword [eax + 0x18]
mov dword [eax], 0
mov dword [eax + 4], 0
and word [eax + 0x10], 0xfdff
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov edx, dword [eax + 8]
mov dword [esp], edx
call dword [eax + 0x14]
jmp 0x40f190
mov dword [0x5602a4], 0
test byte [0x561ee0], 0x80
jne 0x40fa45
lea esi, [esi]
mov eax, dword [0x51100c]
cmp eax, 0x51100c
je 0x40f0a0
jmp 0x40f131
mov ebx, dword [0x5600a0]
mov dword [0x5602a4], 0
test ebx, ebx
je 0x40f17d
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40f1ca
mov dword [esp], ebx
call eax
test eax, eax
je 0x40f652
mov ecx, dword [ebx + 8]
cmp ecx, 0xffffffff
je 0x40f20a
mov edx, dword [0x5602a4]
test edx, edx
jle 0x40f1f8
cmp ecx, dword [0x5600a4]
je 0x40f20a
xor eax, eax
jmp 0x40f1f1
cmp ecx, dword [eax*4 + 0x5600a4]
je 0x40f20a
add eax, 1
cmp eax, edx
jne 0x40f1e8
lea eax, [edx + 1]
mov dword [0x5602a4], eax
mov eax, dword [ebx + 8]
mov dword [edx*4 + 0x5600a4], eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40f1b6
mov eax, dword [0x5602a4]
test eax, eax
je 0x40f17d
lea esi, [esi]
mov eax, dword [0x561ee0]
test al, 0x80
jne 0x40f5b7
mov esi, dword [0x5602a4]
cmp esi, 0x40
jle 0x40f4d7
test byte [0x561ee0], 0x80
jne 0x40f84b
mov eax, 0x82082083
imul esi
mov eax, esi
sar eax, 0x1f
mov dword [ebp - 0x24], 0xffffffff
lea ebx, [edx + esi]
sar ebx, 5
sub ebx, eax
mov eax, esi
mov edi, ebx
shl edi, 6
sub edi, ebx
sub eax, edi
mov dword [ebp - 0x38], eax
setne al
mov byte [ebp - 0x31], al
movzx eax, al
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 3
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x40f70d
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
sub esp, 0x10
test eax, eax
mov dword [ebp - 0x30], eax
je 0x40faa1
xor eax, eax
test ebx, ebx
mov ecx, dword [ebp - 0x2c]
mov edx, 0x5600a4
jle 0x40fa3a
mov esi, dword [ebp - 0x30]
mov dword [ebp - 0x3c], ebx
mov dword [ecx + 0x10], eax
lea ebx, [ebp - 0x24]
add eax, 0x3f
mov dword [ecx + 8], edx
add ecx, 0x18
add edx, 0xfc
mov dword [ecx - 0x18], esi
mov dword [ecx - 0x14], ebx
mov dword [ecx - 0xc], 0x3f
cmp eax, edi
jne 0x40f2e1
mov ebx, dword [ebp - 0x3c]
mov edx, ebx
cmp byte [ebp - 0x31], 0
je 0x40f343
mov edi, dword [ebp - 0x2c]
lea eax, [edx + edx*2]
mov ecx, edx
shl ecx, 6
add ebx, 1
sub ecx, edx
lea edx, [ecx*4 + 0x5600a4]
lea eax, [edi + eax*8]
mov edi, dword [ebp - 0x30]
mov dword [eax + 0x10], ecx
mov dword [eax + 8], edx
mov dword [eax], edi
lea edi, [ebp - 0x24]
mov dword [eax + 4], edi
mov edi, dword [ebp - 0x38]
mov dword [eax + 0xc], edi
test ebx, ebx
jle 0x40fa85
mov esi, dword [ebp - 0x2c]
xor edi, edi
jmp 0x40f360
add edi, 1
add esi, 0x18
cmp edi, ebx
je 0x40f6f1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40bfa0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x40f352
test byte [0x561ee0], 0x80
jne 0x40f8f1
mov esi, dword [ebp - 0x30]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
sub esp, 4
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test edi, edi
je 0x40f401
mov ebx, dword [ebp - 0x2c]
xor esi, esi
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebx + 0x14]
add esi, 1
add ebx, 0x18
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx - 4]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp esi, edi
jl 0x40f3d1
mov eax, dword [ebp - 0x30]
mov esi, 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
sub esp, 4
mov dword [esp], eax
call fcn.004ae080
lea eax, [ebp - 0x24]
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call fcn.004ae380
sub esp, 0xc
test eax, eax
cmovns esi, eax
cmp esi, 0xffffffff
je 0x40f506
test byte [0x561ee0], 0x80
jne 0x40f7b5
cmp esi, dword [0x5602a4]
jae 0x40f220
mov ebx, dword [0x5600a0]
test ebx, ebx
jne 0x40f47e
jmp 0x40f220
mov ebx, dword [ebx]
test ebx, ebx
je 0x40f220
mov eax, dword [ebx + 8]
cmp dword [esi*4 + 0x5600a4], eax
jne 0x40f474
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x40f49a
mov dword [esp], ebx
call eax
test eax, eax
je 0x40f474
test byte [0x561ee0], 0x80
jne 0x40f997
mov eax, dword [ebx + 4]
lea edx, [ebx + 0xc]
call fcn.0040c210
mov ebx, dword [0x5600a0]
test ebx, ebx
je 0x40f190
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40f4cc
mov dword [esp], ebx
call eax
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40f4c0
jmp 0x40f0f0
mov dword [esp], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], 0x5600a4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov esi, eax
sub esp, 0x10
cmp esi, 0xffffffff
jne 0x40f44c
mov eax, dword [0x561ee0]
test al, 0x80
je 0x40f225
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.adb_win32:_wait_failed__error__ld
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x774
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov edx, dword [ebp - 0x1c]
lea esi, [edx - 0xc]
cmp esi, 0x516f30
jne 0x40fb2d
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
mov eax, dword [0x561ee0]
test al, 0x80
je 0x40f22d
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
mov eax, dword [0x5602a4]
mov dword [esp + 4], str.adb_win32:_waiting_for__d_events
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x76c
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov edx, dword [ebp - 0x1c]
lea esi, [edx - 0xc]
cmp esi, 0x516f30
jne 0x40fb72
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x40f22d
test byte [0x561ee0], 0x80
je 0x40f190
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp + 4], str.fdevent_process:_error_when_starting_a_hook
mov dword [esp], eax
call fcn.0042a1c0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x752
lea ecx, [ebp - 0x20]
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov edx, dword [ebp - 0x1c]
lea ebx, [edx - 0xc]
cmp ebx, 0x516f30
jne 0x40fac3
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x40f190
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
jmp 0x40f3cc
mov eax, dword [0x561ee0]
test al, 0x80
je 0x40f50b
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea eax, [ebp - 0x20]
mov dword [esp + 8], esi
mov dword [esp], eax
mov dword [esp + 4], str.Unable_to_allocate_thread_array_for__d_handles.
call fcn.0042a1c0
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6c9
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x1c]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x1c]
call fcn.0042a790
mov edx, dword [ebp - 0x20]
lea esi, [edx - 0xc]
cmp esi, 0x516f30
jne 0x40fbe3
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
mov eax, dword [0x561ee0]
jmp 0x40f50b
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.adb_win32:_got_one__index__d_
call fcn.0042a1c0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x776
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov edx, dword [ebp - 0x1c]
lea edi, [edx - 0xc]
cmp edi, 0x516f30
jne 0x40fafa
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x40f459
nop
lea esi, [esi]
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
mov eax, dword [0x5602a4]
mov dword [esp + 4], str.handle_count__d_exceeds_MAXIMUM_WAIT_OBJECTS.
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x76e
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov edx, dword [ebp - 0x1c]
lea esi, [edx - 0xc]
cmp esi, 0x516f30
jne 0x40fba5
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
mov esi, dword [0x5602a4]
jmp 0x40f249
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], edi
mov dword [esp + 4], str.Unable_to_create_a_waiting_thread__d_of__d._errno_d
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f3
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x1c]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x1c]
call fcn.0042a790
mov edx, dword [ebp - 0x20]
lea ebx, [edx - 0xc]
cmp ebx, 0x516f30
jne 0x40fc16
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x40f3a5
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
mov eax, dword [ebx + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], str.adb_win32:_signaling__s_for__x
add eax, 0x18
mov dword [esp + 8], eax
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x782
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x20]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x20]
call fcn.0042a790
mov edx, dword [ebp - 0x1c]
lea edi, [edx - 0xc]
cmp edi, 0x516f30
jne 0x40fc54
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x40f4a7
xor edx, edx
lea esi, [esi]
jmp 0x40f30c
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp + 4], str.fdevent_process:_nothing_to_wait_for___
mov dword [esp], eax
call fcn.0042a1c0
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x764
jmp 0x40f69a
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
jmp 0x40f401
test byte [0x561ee0], 0x80
jne 0x40fc8b
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.004ae080
mov eax, dword [0x561ee0]
jmp 0x40f50b
mov edi, dword [0x5112ac]
lea eax, [edx - 4]
test edi, edi
jne 0x40fd23
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f6e4
lea eax, [ebp - 0x20]
mov ecx, ebx
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f6e4
mov ecx, dword [0x5112ac]
lea eax, [edx - 4]
test ecx, ecx
jne 0x40fb60
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f83e
lea eax, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f83e
mov edi, dword [0x5112ac]
lea eax, [edx - 4]
test edi, edi
jne 0x40fb67
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f5a2
lea eax, [ebp - 0x20]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f5a2
call fcn.0050df71
jmp 0x40fb10
call fcn.0050df71
lea esi, [esi]
jmp 0x40fb43
mov ecx, dword [0x5112ac]
lea eax, [edx - 4]
test ecx, ecx
jne 0x40fbdc
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f645
lea eax, [ebp - 0x20]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f645
mov edi, dword [0x5112ac]
lea eax, [edx - 4]
test edi, edi
jne 0x40fd3a
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f8de
lea eax, [ebp - 0x20]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f8de
call fcn.0050df71
jmp 0x40fb88
mov ecx, dword [0x5112ac]
lea eax, [edx - 4]
test ecx, ecx
jne 0x40fc4d
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f7a3
lea eax, [ebp - 0x1c]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f7a3
mov ecx, dword [0x5112ac]
lea eax, [edx - 4]
test ecx, ecx
jne 0x40fd2d
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40f98a
lea eax, [ebp - 0x1c]
mov ecx, ebx
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40f98a
call fcn.0050df71
jmp 0x40fbf9
mov ecx, dword [0x5112ac]
lea eax, [edx - 4]
test ecx, ecx
jne 0x40fd4a
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40fa2d
lea eax, [ebp - 0x20]
mov ecx, edi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40fa2d
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 4], str.Unable_to_create_main_event._Error:__ld
mov dword [esp + 8], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0042a1c0
lea ecx, [ebp - 0x1c]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6d1
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042a560
lea ecx, [ebp - 0x1c]
sub esp, 0x14
call fcn.0042a6d0
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00505c10
lea ecx, [ebp - 0x1c]
call fcn.0042a790
mov edx, dword [ebp - 0x20]
lea esi, [edx - 0xc]
cmp esi, 0x516f30
jne 0x40fd5a
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x40faae
call fcn.0050df71
jmp 0x40fadd
lea esi, [esi]
call fcn.0050df71
jmp 0x40fc30
lea esi, [esi]
call fcn.0050df71
jmp 0x40fbbf
lea esi, [esi]
call fcn.0050df71
jmp 0x40fc6e
mov edi, dword [0x5112ac]
lea eax, [edx - 4]
test edi, edi
jne 0x40fd86
mov eax, dword [edx - 4]
lea ecx, [eax - 1]
mov dword [edx - 4], ecx
test eax, eax
jg 0x40fd16
lea eax, [ebp - 0x1c]
mov ecx, esi
mov dword [esp], eax
call fcn.004dba20
sub esp, 4
jmp 0x40fd16
call fcn.0050df71
nop
lea esi, [esi]
jmp 0x40fd70