Function at 0x417530
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xb4
mov eax, dword [esp + 0xc8]
lea ebx, [esp + 8]
lea esi, [esp + 0x3c]
mov dword [esp + 0x3c], 0x4174c0
mov dword [esp + 0x48], 0x417ec0
mov dword [esp + 8], 0x4cdd50
mov dword [esp + 0x14], 0x417f20
mov dword [esp + 0x44], 0x417ef0
mov dword [esp + 0x10], 0x417f30
push ebx
push esi
push eax
call fcn.004cdd60
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
je 0x417595
push 3
push ebx
push ebx
call eax
add esp, 0xc
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4175a6
push 3
push esi
push esi
call eax
add esp, 0xc
push str.ADB_TRACE
call fcn.0043a0d0
add esp, 4
test eax, eax
mov edx, 0x57449b
lea ecx, [esp + 4]
cmovne edx, eax
push esi
push edx
call fcn.005350b0
mov eax, dword [esp + 4]
cmp dword [eax - 0xc], 0
je 0x417b39
lea ecx, [esp + 0x3c]
push ebx
push 0x5744ba
call fcn.005350b0
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x44]
push ebx
push 0x5744bc
call fcn.005350b0
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x4c]
push ebx
push 0x5744c0
call fcn.005350b0
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x54]
push ebx
push str.sockets
call fcn.005350b0
mov dword [esp + 0x58], 1
lea ecx, [esp + 0x5c]
push ebx
push str.packets
call fcn.005350b0
mov dword [esp + 0x60], 2
lea ecx, [esp + 0x64]
push ebx
push 0x5744d4
call fcn.005350b0
mov dword [esp + 0x68], 4
lea ecx, [esp + 0x6c]
push ebx
push 0x5744d8
call fcn.005350b0
mov dword [esp + 0x70], 5
lea ecx, [esp + 0x74]
push ebx
push str.sync
call fcn.005350b0
mov dword [esp + 0x78], 6
lea ecx, [esp + 0x7c]
push ebx
push str.sysdeps
call fcn.005350b0
mov dword [esp + 0x80], 7
lea ecx, [esp + 0x84]
push ebx
push 0x5744e9
call fcn.005350b0
mov dword [esp + 0x88], 3
lea ecx, [esp + 0x8c]
push ebx
push str.jdwp
call fcn.005350b0
mov dword [esp + 0x90], 8
lea ecx, [esp + 0x94]
push ebx
push str.services
call fcn.005350b0
mov dword [esp + 0x98], 9
lea ecx, [esp + 0x9c]
push ebx
push str.auth
call fcn.005350b0
mov dword [esp + 0xa0], 0xa
lea ecx, [esp + 0xa4]
push ebx
push str.fdevent
call fcn.005350b0
lea ebp, [esp + 0xac]
mov dword [esp + 0xa8], 0xb
mov ecx, ebp
push ebx
push str.shell
call fcn.005350b0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x3f800000
mov dword [esp + 0xb0], 0xc
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], 0
push 0xf
call fcn.0051e5f0
mov esi, eax
cmp eax, 0x40000000
mov dword [esp + 0xc], eax
jae 0x417c4a
shl esi, 2
push esi
call fcn.00564040
add esp, 4
mov edi, eax
push esi
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 8], edi
lea esi, [esp + 8]
lea edi, [esp + 0x3c]
mov ecx, esi
push edi
call fcn.00417c90
lea eax, [esp + 0x44]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x4c]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x5c]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x64]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x6c]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x74]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x7c]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x84]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x8c]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0x9c]
mov ecx, esi
push eax
call fcn.00417c90
lea eax, [esp + 0xa4]
mov ecx, esi
push eax
call fcn.00417c90
mov ecx, esi
push ebp
call fcn.00417c90
mov esi, 0x78
nop word cs:[eax + eax]
nop dword [eax]
mov eax, dword [esp + esi + 0x34]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x4178a6
add esi, 0xfffffff8
jne 0x417890
jmp 0x4178c1
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x41789f
mov eax, esp
push eax
call fcn.00533980
add esi, 0xfffffff8
jne 0x417890
mov esi, esp
lea eax, [esp + 0x24]
mov ecx, esi
push eax
push 0x574514
call fcn.005350b0
push esi
lea eax, [esp + 8]
push eax
push edi
call fcn.004cf1c0
add esp, 0xc
mov eax, dword [esp]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x417c29
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
cmp ebx, eax
mov dword [esp + 0x30], eax
jne 0x4179f0
cmp dword [0x5ac048], 0
je 0x41791c
push 0
call fcn.004ce970
add esp, 4
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea ebx, [esp + 8]
cmp esi, edi
jne 0x417b70
test esi, esi
je 0x41793d
push esi
call fcn.00563f90
add esp, 4
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x417ae0
jmp 0x417aff
test ebx, ebx
je 0x417a84
mov eax, dword [ebx]
test eax, eax
je 0x417a84
mov ecx, dword [eax + 8]
cmp ecx, 0xffffffff
je 0x417aa8
mov eax, 1
mov ebx, dword [esp + 0x20]
shl eax, cl
or dword [0x5ac048], eax
jmp 0x417a96
mov ebp, dword [sym.imp.msvcrt.dll__errno]
call ebp
mov esi, dword [eax]
mov ebp, esp
mov ecx, ebp
push 0xffffffffffffffff
push 0
push 4
push 0
push 0x88
push str.system_core_adb_adb_trace.cpp
call fcn.004ce350
mov ecx, ebp
call fcn.004ce340
mov edi, eax
push 0x14
push str.Unknown_trace_flag:
push eax
call fcn.0055d520
add esp, 0xc
mov eax, dword [ebx]
push dword [eax - 0xc]
push eax
push edi
call fcn.0055d520
add esp, 0xc
mov ecx, ebp
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
jmp 0x417a96
mov eax, dword [ebx]
mov dword [esp + 0x20], ebx
push 0xc70f6907
push dword [eax - 0xc]
push eax
call fcn.0055c6e0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 8]
xor edx, edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x34], esi
div esi
mov ebx, dword [ecx + edx*4]
mov ebp, edx
test ebx, ebx
je 0x417a84
mov eax, dword [esp + 0x20]
mov edi, dword [ebx]
mov eax, dword [eax]
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x2c], eax
nop word cs:[eax + eax]
nop dword [eax]
cmp ecx, dword [esp + 0x38]
jne 0x417a6b
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 0xc]
mov eax, dword [edi + 4]
cmp ecx, dword [eax - 0xc]
jne 0x417a6b
push ecx
push eax
push dword [esp + 0x34]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
je 0x41794e
mov esi, dword [edi]
test esi, esi
je 0x417a84
mov ecx, dword [esi + 0xc]
xor edx, edx
mov ebx, edi
mov edi, esi
mov eax, ecx
div dword [esp + 0x34]
cmp edx, ebp
je 0x417a40
call fcn.004ce330
mov ebx, dword [esp + 0x20]
cmp eax, 4
jle 0x417982
add ebx, 4
cmp ebx, dword [esp + 0x30]
jne 0x4179f0
jmp 0x417909
mov dword [0x5ac048], 0xffffffff
jmp 0x417912
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417af2
lea eax, [esp + 0x3c]
push eax
call fcn.00533980
jmp 0x417af2
mov edi, esi
mov esi, dword [esi]
mov eax, dword [edi + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x417ab7
push edi
call fcn.00563f90
add esp, 4
test esi, esi
jne 0x417ae0
mov eax, dword [esp + 0xc]
shl eax, 2
push eax
push 0
push dword [esp + 0x10]
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
push dword [esp + 8]
call fcn.00563f90
add esp, 4
mov eax, dword [esp + 4]
lea esi, [esp + 0x3c]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x417b95
test byte [0x5ac048], 1
jne 0x417bb2
add esp, 0xb4
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417b7d
mov eax, esp
push eax
call fcn.00533980
jmp 0x417b7d
mov eax, dword [esi]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x417b58
add esi, 4
cmp edi, esi
jne 0x417b70
mov esi, dword [esp + 0x3c]
test esi, esi
jne 0x417934
jmp 0x41793d
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417b44
push esi
call fcn.00533980
test byte [0x5ac048], 1
je 0x417b4d
call fcn.004ce330
cmp eax, 1
jg 0x417b4d
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
lea esi, [esp + 0x3c]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0xba
push str.system_core_adb_adb_trace.cpp
call fcn.004ce350
mov ecx, esi
call fcn.004ce340
mov esi, eax
push ebx
call fcn.00411340
add esp, 4
mov eax, dword [esp + 8]
push dword [eax - 0xc]
push eax
push esi
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x417c4f
lea ecx, [esp + 0x3c]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
jmp 0x417b4d
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4178f5
lea eax, [esp + 0x28]
push eax
call fcn.00533980
jmp 0x4178f5
call fcn.0055dfc0
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x417c13
lea eax, [esp + 4]
push eax
call fcn.00533980
jmp 0x417c13