Function at 0x41ef10
Capabilities:
Access peb ldr_data
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x56d203
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x5d480c]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d480c]
xor eax, esp
push eax
lea eax, [esp + 0x23c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x250]
mov esi, ecx
push str.binAdbWinApi.dll
lea edi, [esi + 0x3250]
lea eax, [esp + 0x20]
xor ebx, ebx
push edi
push eax
mov dword [esp + 0x250], ebx
mov dword [esp + 0x2c], ebx
call fcn.00407ab0
add esp, 0xc
push ebx
push 0x581258
mov ecx, ebp
mov byte [esp + 0x24c], 1
mov dword [esp + 0x2c], 0x104
call fcn.00407240
push str.bin_
lea ecx, [esp + 0x30]
push edi
push ecx
call fcn.00407ab0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41efd3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x41f007
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x41f162
push str.ERROR:GetAdbSerialno__LoadLibrary_AdbWinApi.dll_failed_
push esi
call fcn.004d2ee0
add esp, 8
jmp 0x41f162
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AdbCloseHandle
push eax
call ebx
mov dword [esp + 0x28], eax
test eax, eax
jne 0x41f03e
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x41f153
push str.ERROR:GetAdbSerialno__Get_AdbCloseHandle_address_failed_
push esi
call fcn.004d2ee0
add esp, 8
jmp 0x41f153
mov edx, dword [esp + 0x18]
push str.AdbCreateInterfaceByName
push edx
call ebx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41f073
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x41f153
push str.ERROR:GetAdbSerialno__Get_AdbCreateInterfaceByName_address_failed_
push esi
call fcn.004d2ee0
add esp, 8
jmp 0x41f153
mov eax, dword [esp + 0x18]
push str.AdbGetSerialNumber
push eax
call ebx
mov ebx, eax
test ebx, ebx
jne 0x41f0a6
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x41f153
push str.ERROR:GetAdbSerialno__Get_AdbGetSerialNumber_address_failed_
push esi
call fcn.004d2ee0
add esp, 8
jmp 0x41f153
mov ecx, dword [esp + 0x24c]
push ecx
call dword [esp + 0x18]
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41f0ea
cmp dword [esi + 0x3248], eax
je 0x41f143
mov edx, dword [esp + 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esi + 0x3248]
push str.ERROR:GetAdbSerialno__AdbCreateInterfaceByName_failed_err_d_dev_s_
push eax
call fcn.004d2ee0
add esp, 0x10
jmp 0x41f143
push 0x208
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00493420
mov ecx, dword [esp + 0x20]
push 0
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x44]
push eax
push ecx
call ebx
add esp, 0x1c
test al, al
jne 0x41f12f
mov esi, dword [esi + 0x3248]
test esi, esi
je 0x41f143
push str.ERROR:GetAdbSerialno__AdbGetSerialNumber_failed_
push esi
call fcn.004d2ee0
add esp, 8
jmp 0x41f143
lea edx, [esp + 0x30]
push edx
mov ecx, ebp
call fcn.00408aa0
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41f153
push eax
call dword [esp + 0x2c]
add esp, 4
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [esp + 0x20]
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x244], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f193
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24c]
add eax, 0xfffffff0
mov dword [esp + 0x244], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f1c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x23c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00493eee
add esp, 0x234
ret 8