Function at 0x10010e20
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov edx, str.UsbDkHelper
mov esi, ecx
call fcn.10006850
mov dword [0x100c6fa4], eax
test eax, eax
jne 0x10010a8a
xor ecx, ecx
call fcn.10006760
push eax
push str.Failed_to_load_UsbDkHelper.dll:__s
push str.load_usbdk_helper_dll
push 1
push esi
call fcn.100064b0
add esp, 0x14
mov eax, 0xfffffffb
pop esi
ret
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.UsbDk_GetDevicesList
push eax
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010aca
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_GetDevicesList
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fa8], ebx
jmp 0x10010de3
push str.UsbDk_ReleaseDevicesList
push dword [0x100c6fa4]
mov dword [0x100c6fa8], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010b0d
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_ReleaseDevicesList
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fac], ebx
jmp 0x10010de3
push str.UsbDk_StartRedirect
push dword [0x100c6fa4]
mov dword [0x100c6fac], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010b50
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_StartRedirect
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fb0], ebx
jmp 0x10010de3
push str.UsbDk_StopRedirect
push dword [0x100c6fa4]
mov dword [0x100c6fb0], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010b93
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_StopRedirect
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fb4], ebx
jmp 0x10010de3
push str.UsbDk_GetConfigurationDescriptor
push dword [0x100c6fa4]
mov dword [0x100c6fb4], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010bd6
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_GetConfigurationDescriptor
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fb8], ebx
jmp 0x10010de3
push str.UsbDk_ReleaseConfigurationDescriptor
push dword [0x100c6fa4]
mov dword [0x100c6fb8], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010c19
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_ReleaseConfigurationDescriptor
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fbc], ebx
jmp 0x10010de3
push str.UsbDk_ReadPipe
push dword [0x100c6fa4]
mov dword [0x100c6fbc], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010c5c
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_ReadPipe
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fc0], ebx
jmp 0x10010de3
push str.UsbDk_WritePipe
push dword [0x100c6fa4]
mov dword [0x100c6fc0], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010c9f
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_WritePipe
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fc4], ebx
jmp 0x10010de3
push str.UsbDk_AbortPipe
push dword [0x100c6fa4]
mov dword [0x100c6fc4], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010ce2
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_AbortPipe
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fc8], ebx
jmp 0x10010de3
push str.UsbDk_ResetPipe
push dword [0x100c6fa4]
mov dword [0x100c6fc8], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010d25
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_ResetPipe
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fcc], ebx
jmp 0x10010de3
push str.UsbDk_SetAltsetting
push dword [0x100c6fa4]
mov dword [0x100c6fcc], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010d65
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_SetAltsetting
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fd0], ebx
jmp 0x10010de3
push str.UsbDk_ResetDevice
push dword [0x100c6fa4]
mov dword [0x100c6fd0], ebx
call edi
mov ebx, eax
test ebx, ebx
jne 0x10010da5
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_ResetDevice
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fd4], ebx
jmp 0x10010de3
push str.UsbDk_GetRedirectorSystemHandle
push dword [0x100c6fa4]
mov dword [0x100c6fd4], ebx
call edi
mov edi, eax
test edi, edi
jne 0x10010e05
xor ecx, ecx
call fcn.10006760
push eax
push str.UsbDk_GetRedirectorSystemHandle
push str.UsbDkHelper_API__s_not_found:__s
push str.get_usbdk_proc_addr
push 1
push esi
call fcn.100064b0
mov dword [0x100c6fd8], edi
add esp, 0x18
push dword [0x100c6fa4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebx
mov dword [0x100c6fa4], 0
mov eax, 0xfffffffb
pop esi
ret
mov dword [0x100c6fd8], edi
xor eax, eax
pop edi
pop ebx
pop esi
ret
sub esp, 8
mov edx, str.Advapi32
push ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
push esi
call fcn.10006850
mov esi, eax
test esi, esi
jne 0x10010e59
push str.failed_to_open_Advapi32_n
push str.usbdk_init
push 2
push ebx
call fcn.100064b0
add esp, 0x10
lea eax, [esi - 0x63]
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OpenSCManagerA
push esi
call edi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10010e7d
mov edi, str.failed_to_find__s_in_Advapi32_n
mov eax, str.OpenSCManagerA
jmp 0x10010ecf
push str.OpenServiceA
push esi
call edi
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10010e99
mov edi, str.failed_to_find__s_in_Advapi32_n
mov eax, str.OpenServiceA
jmp 0x10010ecf
push str.CloseServiceHandle
push esi
call edi
mov ebp, eax
test ebp, ebp
jne 0x10010eb3
mov edi, str.failed_to_find__s_in_Advapi32_n
mov eax, str.CloseServiceHandle
jmp 0x10010ecf
push 1
push 0
push 0
call dword [esp + 0x1c]
mov edi, eax
test edi, edi
jne 0x10010ef5
xor ecx, ecx
mov edi, str.failed_to_open_service_control_manager:__s
call fcn.10006760
push eax
push edi
push str.usbdk_init
push 2
push ebx
call fcn.100064b0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
pop esi
mov eax, 0xffffff9d
pop ebx
add esp, 8
ret
push 0x80000000
push str.UsbDk
push edi
call dword [esp + 0x20]
push edi
mov dword [esp + 0x18], eax
call ebp
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x10010f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
je 0x10010f3d
xor ecx, ecx
call fcn.10006760
push eax
push str.failed_to_open_UsbDk_service:__s
push str.usbdk_init
push 2
push ebx
call fcn.100064b0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
pop esi
mov eax, 0xfffffffb
pop ebx
add esp, 8
ret
push eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop ebp
pop esi
mov ecx, ebx
pop ebx
add esp, 8
jmp 0x10010a50