Function at 0x100032aa
Capabilities:
Check if file exists
Get common file path
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x101297f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.AdbWinApi.dll
lea edi, [esi + 0x20]
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1011ffb8
mov ecx, dword [eax]
mov edx, dword [0x1018fb1c]
push ecx
push 0x1016a4b8
push edx
mov dword [esp + 0x30], 0
call fcn.100251e0
add esp, 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.1011fd13
push str.AdbWinApi.dll
lea eax, [esp + 0x14]
push edi
push eax
call fcn.1011ffb8
mov eax, dword [eax]
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call ebp
test eax, eax
lea ecx, [esp + 0x10]
sete bl
call fcn.1011fd13
test bl, bl
je 0x1000341f
push 0x1017dba8
lea ecx, [esp + 0x14]
call fcn.1011fd87
push 0x104
push 0x104
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 1
call fcn.10120158
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
or edi, 0xffffffff
lea ecx, [esp + 0x10]
push edi
call fcn.101201a8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1000337a
push str.c:windows_system32_
lea ecx, [esp + 0x14]
call fcn.1011feaa
jmp 0x10003388
push str._system32_
lea ecx, [esp + 0x14]
call fcn.10120104
lea edx, [esp + 0x10]
push str.AdbWinApi.dll
lea eax, [esp + 0x18]
push edx
push eax
call fcn.1011ffb8
mov eax, dword [eax]
push eax
call ebp
test eax, eax
lea ecx, [esp + 0x14]
sete bl
call fcn.1011fd13
test bl, bl
je 0x100033ec
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100033ca
push str.ERROR:InitAdbApi___PathFileExists_failed
push eax
call fcn.100251e0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edi
call fcn.1011fd13
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
push str.AdbWinApi.dll
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.1011ffb8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [esp + 0x14]
mov dword [esi + 4], eax
call fcn.1011fd13
mov dword [esp + 0x24], edi
lea ecx, [esp + 0x10]
jmp 0x1000343f
push str.AdbWinApi.dll
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.1011ffb8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
lea ecx, [esp + 0x18]
call fcn.1011fd13
mov eax, dword [esi + 4]
test eax, eax
jne 0x1000347b
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100035ab
push str.ERROR:InitAdbApi___LoadLibrary_failed
push eax
call fcn.100251e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AdbCloseHandle
push eax
call edi
test eax, eax
mov dword [esi + 8], eax
jne 0x100034c0
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100035ab
push str.ERROR:InitAdbApi___Get_AdbCloseHandle_failed
push eax
call fcn.100251e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esi + 4]
push str.AdbEnumInterfaces
push ecx
call edi
test eax, eax
mov dword [esi + 0xc], eax
jne 0x10003502
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100035ab
push str.ERROR:InitAdbApi___Get_AdbEnumInterfaces_failed
push eax
call fcn.100251e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esi + 4]
push str.AdbNextInterface
push edx
call edi
test eax, eax
mov dword [esi + 0x10], eax
jne 0x10003544
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100035ab
push str.ERROR:InitAdbApi___Get_AdbNextInterface_failed
push eax
call fcn.100251e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esi + 4]
push str.AdbCreateInterface
push eax
call edi
test eax, eax
mov dword [esi + 0x14], eax
jne 0x10003582
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100035ab
push str.ERROR:InitAdbApi___Get_AdbCreateInterface_failed
push eax
call fcn.100251e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esi + 4]
push str.AdbOpenDefaultBulkReadEndpoint
push ecx
call edi
test eax, eax
mov dword [esi + 0x18], eax
jne 0x100035c0
mov eax, dword [0x1018fb1c]
test eax, eax
je 0x100035ab
push str.ERROR:InitAdbApi___Get_AdbOpenDefaultBulkReadEndpoint_failed
push eax
call fcn.100251e0
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret