Function at 0x6b811ec0
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.libusb_1.0.dll_load_system_library
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x6b812410
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 [0x6b82028c], eax
je 0x6b8124d0
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 [0x6b820290], eax
je 0x6b8124e0
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 [0x6b820294], eax
je 0x6b8124f0
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 [0x6b820298], eax
je 0x6b8123d3
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 [0x6b82029c], eax
je 0x6b812500
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 [0x6b8202a0], eax
je 0x6b8125f1
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 [0x6b8202a4], eax
je 0x6b812610
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 [0x6b8202a8], eax
je 0x6b812632
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 [0x6b8202ac], eax
je 0x6b812600
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 [0x6b8202b0], eax
je 0x6b812640
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 [0x6b8202b4], eax
je 0x6b812650
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 [0x6b8202bc], eax
je 0x6b812620
mov dword [esp + 4], str.WinUsb_QueryPipeEx
mov dword [esp], edi
call ebx
sub esp, 8
test eax, eax
mov dword [0x6b8202b8], eax
je 0x6b812750
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 [0x6b8202c0], eax
je 0x6b812760
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 [0x6b8202c4], eax
je 0x6b81276d
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 [0x6b8202c8], eax
je 0x6b81277a
mov eax, dword [0x6b8202bc]
mov edx, str.with
mov dword [0x6b820288], 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.libusb_1.0.dll_usbi_log
nop
lea esi, [esi]
mov eax, dword [0x6b820288]
test eax, eax
je 0x6b8125a3
mov eax, dword [ebp + 8]
mov dword [esp + 4], str.libusbK
mov dword [esp], eax
call sym.libusb_1.0.dll_load_system_library
test eax, eax
mov dword [ebp - 0x30], eax
je 0x6b812440
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 0x6b8124a0
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], 0
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
call sym.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], str.LibK_GetProcAddress
mov esi, 0x6b820204
mov dword [esp], eax
call ebx
xor ebx, ebx
sub esp, 8
test eax, eax
mov edi, eax
je 0x6b812510
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 0x6b812660
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 0x6b8126a0
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 0x6b8126b0
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 0x6b8126c0
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 0x6b8126d0
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 0x6b8126e0
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 0x6b8126f0
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 0x6b812700
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 0x6b812710
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 0x6b812720
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 0x6b812730
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 0x6b81239a
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 0x6b812740
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 0x6b8121e8
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], str.Free
nop
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.libusb_1.0.dll_usbi_log
jmp 0x6b812130
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.libusb_1.0.dll_usbi_log
jmp 0x6b81213d
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.libusb_1.0.dll_usbi_log
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x6b8123c6
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.libusb_1.0.dll_usbi_log
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
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], 0
call sym.libusb_1.0.dll_usbi_log
jmp 0x6b8121c4
mov dword [esp + 0x10], str.AbortPipe
jmp 0x6b8123e0
mov dword [esp + 0x10], str.ControlTransfer
jmp 0x6b8123e0
mov dword [esp + 0x10], str.FlushPipe
jmp 0x6b8123e0
mov dword [esp + 0x10], str.GetAssociatedInterface
jmp 0x6b8123e0
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.libusb_1.0.dll_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.libusb_1.0.dll_usbi_log
mov eax, ebx
shl eax, 6
lea edx, [eax + ebx*4 + 0x6b820200]
mov ebx, 0x6b8201bc
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 0x6b812569
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
sub esp, 4
jmp 0x6b812463
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.libusb_1.0.dll_usbi_log
mov edx, 0x6b820288
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 0x6b81213d
mov dword [esp + 0x10], str.Initialize
jmp 0x6b8123e0
mov dword [esp + 0x10], str.SetCurrentAlternateSetting
jmp 0x6b8123e0
mov dword [esp + 0x10], str.ReadPipe
jmp 0x6b8123e0
mov eax, dword [ebp - 0x2c]
mov dword [0x6b820288], eax
mov eax, str.without
jmp 0x6b812101
mov dword [esp + 0x10], str.ResetPipe
jmp 0x6b8123e0
mov dword [esp + 0x10], str.SetPipePolicy
jmp 0x6b8123e0
mov dword [esp + 0x10], str.WritePipe
jmp 0x6b8123e0
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.libusb_1.0.dll_usbi_log
jmp 0x6b812533
mov dword [esp + 0x10], str.ControlTransfer
jmp 0x6b812670
mov dword [esp + 0x10], str.FlushPipe
jmp 0x6b812670
mov dword [esp + 0x10], str.Free
jmp 0x6b812670
mov dword [esp + 0x10], str.GetAssociatedInterface
jmp 0x6b812670
mov dword [esp + 0x10], str.Initialize
jmp 0x6b812670
mov dword [esp + 0x10], str.ReadPipe
jmp 0x6b812670
mov dword [esp + 0x10], str.ResetPipe
jmp 0x6b812670
mov dword [esp + 0x10], str.SetCurrentAlternateSetting
jmp 0x6b812670
mov dword [esp + 0x10], str.SetPipePolicy
jmp 0x6b812670
mov dword [esp + 0x10], str.WritePipe
jmp 0x6b812670
mov dword [esp + 0x10], str.IsoWritePipe
jmp 0x6b812670
mov dword [esp + 0x10], str.QueryPipeEx
jmp 0x6b8123e0
mov dword [esp + 0x10], str.RegisterIsochBuffer
jmp 0x6b8123e0
mov dword [esp + 0x10], str.UnregisterIsochBuffer
jmp 0x6b8123e0
mov dword [esp + 0x10], str.WriteIsochPipeAsap
jmp 0x6b8123e0