Function at 0x5a1fd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [ebp + 8]
mov dword [esp + 4], str.WinUSB
mov dword [esp], eax
call sym._load_system_library
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x5a2520
mov dword [esp + 4], str.WinUsb_AbortPipe
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
sub esp, 8
test eax, eax
mov dword [0x743d8c], eax
je 0x5a25e0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_ControlTransfer
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743d90], eax
je 0x5a25f0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_FlushPipe
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743d94], eax
je 0x5a2600
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_Free
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743d98], eax
je 0x5a24e2
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_GetAssociatedInterface
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743d9c], eax
je 0x5a2610
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_Initialize
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743da0], eax
je 0x5a2701
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_ReadPipe
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743da4], eax
je 0x5a2720
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_ResetPipe
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743da8], eax
je 0x5a2742
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_SetCurrentAlternateSetting
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743dac], eax
je 0x5a2710
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_SetPipePolicy
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743db0], eax
je 0x5a2750
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_WritePipe
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743db4], eax
je 0x5a2760
mov edi, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_ReadIsochPipeAsap
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
mov dword [0x743dbc], eax
je 0x5a2730
mov dword [esp + 4], str.WinUsb_QueryPipeEx
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
mov dword [0x743db8], eax
je 0x5a2860
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_RegisterIsochBuffer
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743dc0], eax
je 0x5a2870
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_UnregisterIsochBuffer
mov dword [esp], eax
call ebx
sub esp, 8
test eax, eax
mov dword [0x743dc4], eax
je 0x5a287d
mov edi, dword [ebp - 0x2c]
mov dword [esp + 4], str.WinUsb_WriteIsochPipeAsap
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
mov dword [0x743dc8], eax
je 0x5a288a
mov eax, dword [0x743dbc]
mov edx, str.with
mov dword [0x743d88], edi
test eax, eax
mov eax, str.without
cmovne eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.WinUSB_DLL_available___s_isoch_support_
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 3
mov dword [esp], eax
call sym._usbi_log
nop
lea esi, [esi]
mov eax, dword [0x743d88]
test eax, eax
je 0x5a26b3
mov eax, dword [ebp + 8]
mov dword [esp + 4], str.libusbK
mov dword [esp], eax
call sym._load_system_library
test eax, eax
mov dword [ebp - 0x30], eax
je 0x5a2550
mov dword [esp + 4], str.LibK_GetVersion
mov dword [esp], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call ebx
sub esp, 8
test eax, eax
je 0x5a25b0
lea edx, [ebp - 0x28]
mov dword [esp], edx
call eax
mov eax, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0xc], str.libusbK_DLL_found__version:__d._d._d._d
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 4
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._usbi_log
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.LibK_GetProcAddress
mov esi, 0x743d04
mov dword [esp], eax
call ebx
xor ebx, ebx
sub esp, 8
test eax, eax
mov edi, eax
je 0x5a2620
mov dword [esp + 8], 0x1b
mov dword [esp + 4], ebx
mov dword [esp], esi
call edi
mov eax, dword [esi]
sub esp, 0xc
test eax, eax
je 0x5a2770
lea eax, [esi + 4]
mov dword [esp + 8], 7
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 4]
sub esp, 0xc
test eax, eax
je 0x5a27b0
lea eax, [esi + 8]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 8]
sub esp, 0xc
test eax, eax
je 0x5a27c0
lea eax, [esi + 0xc]
mov dword [esp + 8], 1
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov ecx, dword [esi + 0xc]
sub esp, 0xc
test ecx, ecx
je 0x5a27d0
lea eax, [esi + 0x10]
mov dword [esp + 8], 0xf
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov edx, dword [esi + 0x10]
sub esp, 0xc
test edx, edx
je 0x5a27e0
lea eax, [esi + 0x14]
mov dword [esp + 8], 0xd
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x14]
sub esp, 0xc
test eax, eax
je 0x5a27f0
lea eax, [esi + 0x18]
mov dword [esp + 8], 0x18
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x18]
sub esp, 0xc
test eax, eax
je 0x5a2800
lea eax, [esi + 0x1c]
mov dword [esp + 8], 0x1a
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x1c]
sub esp, 0xc
test eax, eax
je 0x5a2810
lea eax, [esi + 0x20]
mov dword [esp + 8], 0x13
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x20]
sub esp, 0xc
test eax, eax
je 0x5a2820
lea eax, [esi + 0x24]
mov dword [esp + 8], 0x16
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x24]
sub esp, 0xc
test eax, eax
je 0x5a2830
lea eax, [esi + 0x28]
mov dword [esp + 8], 0x19
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov eax, dword [esi + 0x28]
sub esp, 0xc
test eax, eax
je 0x5a2840
lea eax, [esi + 0x2c]
mov dword [esp + 8], 0x1d
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov ecx, dword [esi + 0x2c]
sub esp, 0xc
test ecx, ecx
je 0x5a24a9
lea eax, [esi + 0x30]
mov dword [esp + 8], 0x1e
mov dword [esp + 4], ebx
mov dword [esp], eax
call edi
mov edx, dword [esi + 0x30]
sub esp, 0xc
test edx, edx
je 0x5a2850
lea eax, [esi + 0x34]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0xc
add ebx, 1
add esi, 0x44
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x30]
sub esp, 0xc
mov dword [esi - 0x48], eax
cmp ebx, 2
jne 0x5a22f7
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], str.Free
lea esi, [esi]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.GetProcAddress___failed_for_WinUsb__s
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
jmp 0x5a2240
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.WinUSB_DLL_is_not_available
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 3
mov dword [esp], eax
call sym._usbi_log
jmp 0x5a224d
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.libusbK_DLL_is_not_available
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 3
mov dword [esp], eax
call sym._usbi_log
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x5a24d5
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.neither_WinUSB_nor_libusbK_DLLs_were_found__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 sym._usbi_log
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.libusbK_DLL_found__version_unknown
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 4
mov dword [esp], eax
call sym._usbi_log
jmp 0x5a22d3
mov dword [esp + 0x10], str.AbortPipe
jmp 0x5a24f0
mov dword [esp + 0x10], str.ControlTransfer
jmp 0x5a24f0
mov dword [esp + 0x10], str.FlushPipe
jmp 0x5a24f0
mov dword [esp + 0x10], str.GetAssociatedInterface
jmp 0x5a24f0
mov eax, dword [ebp + 8]
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 sym._usbi_log
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.failed_to_initialize_libusbK
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
mov eax, ebx
shl eax, 6
lea edx, [eax + ebx*4 + 0x743d00]
mov ebx, 0x743cbc
xor eax, eax
lea edi, [edx + 4]
mov ecx, edx
mov dword [edx], 0
mov dword [edx + 0x40], 0
sub edx, 0x44
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0x44
shr ecx, 2
cmp ebx, edx
rep stosd dword es:[edi], eax
jne 0x5a2679
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x5a2573
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.failed_to_initialize_WinUSB
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
mov edx, 0x743d88
xor eax, eax
mov ecx, 0x11
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x2c], 0
sub esp, 4
jmp 0x5a224d
mov dword [esp + 0x10], str.Initialize
jmp 0x5a24f0
mov dword [esp + 0x10], str.SetCurrentAlternateSetting
jmp 0x5a24f0
mov dword [esp + 0x10], str.ReadPipe
jmp 0x5a24f0
mov eax, dword [ebp - 0x2c]
mov dword [0x743d88], eax
mov eax, str.without
jmp 0x5a2211
mov dword [esp + 0x10], str.ResetPipe
jmp 0x5a24f0
mov dword [esp + 0x10], str.SetPipePolicy
jmp 0x5a24f0
mov dword [esp + 0x10], str.WritePipe
jmp 0x5a24f0
mov dword [esp + 0x10], str.AbortPipe
nop
lea esi, [esi]
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], str.LibK_GetProcAddress___failed_for_LibK__s
mov dword [esp + 8], str.winusbx_init
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._usbi_log
jmp 0x5a2643
mov dword [esp + 0x10], str.ControlTransfer
jmp 0x5a2780
mov dword [esp + 0x10], str.FlushPipe
jmp 0x5a2780
mov dword [esp + 0x10], str.Free
jmp 0x5a2780
mov dword [esp + 0x10], str.GetAssociatedInterface
jmp 0x5a2780
mov dword [esp + 0x10], str.Initialize
jmp 0x5a2780
mov dword [esp + 0x10], str.ReadPipe
jmp 0x5a2780
mov dword [esp + 0x10], str.ResetPipe
jmp 0x5a2780
mov dword [esp + 0x10], str.SetCurrentAlternateSetting
jmp 0x5a2780
mov dword [esp + 0x10], str.SetPipePolicy
jmp 0x5a2780
mov dword [esp + 0x10], str.WritePipe
jmp 0x5a2780
mov dword [esp + 0x10], str.IsoWritePipe
jmp 0x5a2780
mov dword [esp + 0x10], str.QueryPipeEx
jmp 0x5a24f0
mov dword [esp + 0x10], str.RegisterIsochBuffer
jmp 0x5a24f0
mov dword [esp + 0x10], str.UnregisterIsochBuffer
jmp 0x5a24f0
mov dword [esp + 0x10], str.WriteIsochPipeAsap
jmp 0x5a24f0