Function at 0x4ca010
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [esp], str.libusbK
call ebx
sub esp, 4
test eax, eax
mov edi, eax
je 0x4ca552
mov dword [esp + 0xc], str.using_libusbK_DLL_for_universal_access
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 4
mov dword [esp], 0
call dbg.usbi_log
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 4], str.LibK_GetVersion
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
je 0x4ca0be
lea edx, [ebp - 0x28]
mov dword [esp], edx
call eax
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0xc], str.libusbK_version:__d._d._d._d
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 4
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
call dbg.usbi_log
mov dword [esp + 4], str.LibK_GetProcAddress
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x4ca593
mov ebx, 0x5bd240
xor esi, esi
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x4ca316
mov dword [esp + 4], str.WinUsb_AbortPipe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 4], eax
mov dword [esp + 4], str.WinUsb_ControlTransfer
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 8], eax
mov dword [esp + 4], str.WinUsb_FlushPipe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0xc], eax
mov dword [esp + 4], str.WinUsb_Free
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x10], eax
mov dword [esp + 4], str.WinUsb_GetAssociatedInterface
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x14], eax
mov dword [esp + 4], str.WinUsb_GetCurrentAlternateSetting
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x18], eax
mov dword [esp + 4], str.WinUsb_GetDescriptor
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x1c], eax
mov dword [esp + 4], str.WinUsb_GetOverlappedResult
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x20], eax
mov dword [esp + 4], str.WinUsb_GetPipePolicy
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x24], eax
mov dword [esp + 4], str.WinUsb_GetPowerPolicy
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x28], eax
mov dword [esp + 4], str.WinUsb_Initialize
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x2c], eax
mov dword [esp + 4], str.WinUsb_QueryDeviceInformation
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x30], eax
mov dword [esp + 4], str.WinUsb_QueryInterfaceSettings
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x34], eax
mov dword [esp + 4], str.WinUsb_QueryPipe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x38], eax
mov dword [esp + 4], str.WinUsb_ReadPipe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x3c], eax
mov dword [esp + 4], str.WinUsb_ResetPipe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x40], eax
mov dword [esp + 4], str.WinUsb_SetCurrentAlternateSetting
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x44], eax
mov dword [esp + 4], str.WinUsb_SetPipePolicy
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x48], eax
mov dword [esp + 4], str.WinUsb_SetPowerPolicy
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebx + 0x4c], eax
mov dword [esp + 4], str.WinUsb_WritePipe
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x50], eax
mov eax, dword [ebx + 0x2c]
sub esp, 8
test eax, eax
je 0x4ca519
mov eax, dword [esi*4 + 0x5985d0]
mov dword [ebx], 1
mov dword [esp + 0xc], str.initalized_sub_API__s
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 0x10], eax
mov dword [esp + 4], 4
mov dword [esp], 0
call dbg.usbi_log
add esi, 1
add ebx, 0x58
cmp esi, 3
jne 0x4ca0e0
mov dword [0x5bd348], edi
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 4]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 8]
sub esp, 0xc
mov dword [esp + 8], 7
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x1c
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x10]
sub esp, 0xc
mov dword [esp + 8], 1
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x14]
sub esp, 0xc
mov dword [esp + 8], 0xf
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x18]
sub esp, 0xc
mov dword [esp + 8], 0x14
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x1c]
sub esp, 0xc
mov dword [esp + 8], 6
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x20]
sub esp, 0xc
mov dword [esp + 8], 0x20
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x24]
sub esp, 0xc
mov dword [esp + 8], 0x17
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x28]
sub esp, 0xc
mov dword [esp + 8], 9
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x2c]
sub esp, 0xc
mov dword [esp + 8], 0xd
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x30]
sub esp, 0xc
mov dword [esp + 8], 0x12
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x34]
sub esp, 0xc
mov dword [esp + 8], 0x11
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x38]
sub esp, 0xc
mov dword [esp + 8], 0x15
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x3c]
sub esp, 0xc
mov dword [esp + 8], 0x18
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x40]
sub esp, 0xc
mov dword [esp + 8], 0x1a
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x44]
sub esp, 0xc
mov dword [esp + 8], 0x13
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x48]
sub esp, 0xc
mov dword [esp + 8], 0x16
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x4c]
sub esp, 0xc
mov dword [esp + 8], 8
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x50]
sub esp, 0xc
mov dword [esp + 8], 0x19
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
lea eax, [ebx + 0x54]
sub esp, 0xc
mov dword [esp + 8], 0xc
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [ebp - 0x2c]
mov eax, dword [ebx + 0x2c]
sub esp, 0xc
test eax, eax
jne 0x4ca2c2
mov eax, dword [esi*4 + 0x5985d0]
mov dword [esp + 0xc], str.Failed_to_initalize_sub_API__s
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 2
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dbg.usbi_log
mov dword [ebx], 0
jmp 0x4ca2f7
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.libusbK_DLL_is_not_available__will_use_native_WinUSB
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 3
mov dword [esp], eax
call dbg.usbi_log
mov dword [esp], str.WinUSB
call ebx
sub esp, 4
test eax, eax
mov edi, eax
je 0x4ca5cc
mov dword [ebp - 0x2c], 0
jmp 0x4ca0d9
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.LibK_GetProcAddress___not_found_in_libusbK_DLL
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 1
mov dword [esp], eax
call dbg.usbi_log
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0xfffffffb
sub esp, 4
jmp 0x4ca30e
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.WinUSB_DLL_is_not_available_either__you_will_not_be_able_to_access_devices_outside_of_enumeration
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 2
mov dword [esp], eax
call dbg.usbi_log
mov eax, 0xfffffffb
jmp 0x4ca30e