Function at 0x10001600
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
sub esp, 0x148
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x144], eax
mov eax, dword [esp + 0x14c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x15c]
push 0x12
xor ebx, ebx
push ebx
push ebx
push 0x1000b190
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0xc], esi
jne 0x100016a3
push 0xff
lea ecx, [esp + 0x55]
push ebx
push ecx
mov byte [esp + 0x5c], bl
call fcn.10002020
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x54]
push str._USBIO__SSUSBOPEN:_SetupDiGetClassDevs_fail_____d__n
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.10002005
add esp, 0x148
ret
mov dword [esp + 0x34], 0x1c
mov dword [esp + 0x20], ebx
push ebp
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x38]
push ecx
push edx
push 0x1000b190
push ebx
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInterfaces]
test eax, eax
jne 0x100016f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x10001994
push eax
push str._USB_EP0_IO_Module__SetupDiEnumDeviceInterfaces___ERROR_error_code___d
call fcn.10001000
add esp, 8
push esi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
jmp 0x10001a39
cmp edi, ebx
je 0x100018bf
cmp byte [edi], 0
je 0x100018bf
cmp byte [edi + 1], 0
je 0x100018bf
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov ebx, 4
push 0x200
mov dword [esp + 0x1c], ebx
call fcn.100021f8
push 0x200
mov ebp, eax
call fcn.100021f8
add esp, 8
test ebp, ebp
mov esi, eax
mov dword [esp + 0x14], 0
je 0x100018a7
test esi, esi
je 0x1000189e
push 0x200
push 0
push ebp
call fcn.10002020
push 0x200
push 0
push esi
call fcn.10002020
mov ecx, dword [esp + 0x28]
add esp, 0x18
push 0x20019
push 0
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDeviceInterfaceRegKey]
mov edi, eax
test edi, edi
je 0x100019a8
cmp edi, 0xffffffff
je 0x100019a8
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push str.Port_Number
mov dword [esp + 0x2c], ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov dword [esp + 0x34], 0
call ebx
test eax, eax
je 0x10001801
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1000211b
push esi
call fcn.1000211b
push str._USB_EP0_IO_Module__Get_Port_Name_Fail_
call fcn.10001000
add dword [esp + 0x30], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
add esp, 0xc
xor ebx, ebx
jmp 0x100016b0
lea edx, [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x24]
push eax
push 0
push str.Base_Name
push edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0x100
call ebx
test eax, eax
je 0x10001860
push str._USB_EP0_IO_Module__Get_Base_Name_Fail_
call fcn.10001000
mov eax, esi
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10001840
sub eax, edx
jne 0x10001860
push 0x1000b2f8
push 0x200
push esi
call fcn.100020b6
add esp, 0xc
cmp byte [esi], 0
je 0x10001897
mov ecx, dword [esp + 0x28]
push ecx
push esi
push str._s_03d
push 0x200
push ebp
call fcn.1000209a
mov edx, dword [esp + 0x40]
push 6
push edx
push ebp
call fcn.10001c99
add esp, 0x20
test eax, eax
jne 0x10001897
mov dword [esp + 0x14], 1
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.1000211b
add esp, 4
test esi, esi
je 0x100018b4
push esi
call fcn.1000211b
add esp, 4
cmp dword [esp + 0x14], 1
jne 0x10001994
mov ebx, dword [esp + 0x10]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInterfaceDetailA]
push 0
lea eax, [esp + 0x24]
push eax
push 0
push 0
lea ecx, [esp + 0x48]
push ecx
push ebx
call esi
mov edx, dword [esp + 0x20]
push edx
call fcn.100021f8
add esp, 4
push 0
mov edi, eax
push 0
mov dword [edi], 5
mov eax, dword [esp + 0x28]
push eax
push edi
lea ecx, [esp + 0x48]
push ecx
push ebx
call esi
test eax, eax
je 0x100019d5
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
lea ebx, [edi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000198b
push 0x100
mov dword [esp + 0x18], 0x100
call fcn.100021f8
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x10001976
push 0x100
push 0
push ebp
call fcn.10002020
lea edx, [esp + 0x20]
push edx
push ebp
push esi
call fcn.10001090
add esp, 0x18
test eax, eax
push ebp
jne 0x100019f6
call fcn.1000211b
add esp, 4
push ebx
push str._USB_EP0_IO_Module__GetDeviceID_is_failed___s
call fcn.10001000
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000211b
add esp, 4
add dword [esp + 0x24], 1
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x2c]
xor ebx, ebx
jmp 0x100016b0
push ebp
call fcn.1000211b
push esi
call fcn.1000211b
push str._USB_EP0_IO_Module__SetupDiOpenDeviceInterfaceRegKey___Fail_
call fcn.10001000
add dword [esp + 0x30], 1
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
add esp, 0xc
xor ebx, ebx
jmp 0x100016b0
push edi
call fcn.1000211b
add esp, 4
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push str._USB_EP0_IO_Module__Error_in_SetupDiGetDeviceInterfaceDetail
call fcn.10001000
add esp, 4
xor eax, eax
jmp 0x10001a39
mov eax, dword [esp + 0x34]
push eax
push str._USB_EP0_IO_Module__Success_get_port_name_:__s__DeviceID__s
call fcn.10001000
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1000211b
push ebp
call fcn.1000211b
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x154]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10002005
add esp, 0x148
ret