Function at 0x1400124b0
Capabilities:
Enumerate pe sections
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x140052010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r12d, r12d
lea rdx, str.Enter_EnumerateHub___n
mov rbx, rcx
mov dword [rsp + 0x50], r12d
mov r15d, r12d
mov dword [rsp + 0x40], r12d
mov esi, r12d
lea ecx, [r12 + 2]
lea r13, [r12 - 1]
call fcn.1400194a0
lea rcx, str.Enter_EnumerateHub___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [r12 + 0x4c]
call fcn.140025c00
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
jne 0x140012544
lea rcx, str.Enter_if__hubInfo__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140012b5d
xor r9d, r9d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov edx, 0x40000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x14001258e
lea rcx, str.Enter_if__hHubDevice__INVALID_HANDLE_VALUE__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.140025a08
jmp 0x140012b5d
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 0x4c
mov dword [rsp + 0x28], 0x4c
mov r8, rdi
mov edx, 0x220408
mov qword [rsp + 0x20], rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400125df
lea rcx, str.Enter_if___DeviceIoControl_sizeof_USB_NODE_INFORMATION_____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.140025a08
jmp 0x140012b58
mov ecx, 0x16d
mov qword [rsp + 0x2d8], r14
mov dword [rsp + 0x50], 0x16d
mov dword [rsp + 0x40], 0x16d
call fcn.140025c00
mov ecx, dword [rsp + 0x40]
mov r14, rax
call fcn.140025c00
mov qword [rsp + 0x58], rax
mov rbx, rax
test rax, rax
je 0x140012b0d
test r14, r14
je 0x140012b0d
mov r12d, 1
cmp byte [rdi + 6], r12b
jb 0x140012b1a
nop word [rax + rax]
mov r9d, dword [rsp + 0x50]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], 0
mov r8, r14
mov qword [rsp + 0x30], rax
mov edx, 0x220448
mov dword [rsp + 0x28], r9d
mov rcx, r13
mov qword [rsp + 0x20], r14
mov dword [r14], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x1400126e1
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov r8, rbx
mov qword [rsp + 0x30], rax
mov edx, 0x22040c
mov dword [rsp + 0x28], r9d
mov rcx, r13
mov qword [rsp + 0x20], rbx
mov dword [rbx], r12d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140012a11
movzx eax, byte [rbx + 0x16]
movups xmm0, xmmword [rbx + 4]
mov byte [r14 + 0x16], al
movzx eax, byte [rbx + 0x18]
mov byte [r14 + 0x18], al
mov eax, dword [rbx + 0x1f]
mov dword [r14 + 0x1f], eax
movzx eax, word [rbx + 0x14]
movups xmmword [r14 + 4], xmm0
mov word [r14 + 0x14], ax
cmp byte [r14 + 0x18], 0
je 0x1400128bf
xor esi, esi
mov dword [rsp + 0x44], 0
mov qword [rsp + 0x38], rsi
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0xa
lea r9d, [rsi + 0xa]
mov qword [rsp + 0x20], rax
mov edx, 0x220414
mov dword [rsp + 0x60], r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400127f7
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
cmp eax, 0xa
jbe 0x1400127f7
mov ecx, eax
call fcn.140025c00
mov rdi, rax
test rax, rax
je 0x1400127f2
mov dword [rax], r12d
mov r8, rdi
mov r9d, dword [rsp + 0x44]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], rsi
mov edx, 0x220414
mov qword [rsp + 0x30], rax
mov rcx, r13
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400127ea
mov r8, 0xffffffffffffffff
mov rcx, r8
nop
inc rcx
cmp word [rdi + rcx*2 + 8], si
jne 0x1400127a0
inc rcx
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.1400198fc
mov rsi, rax
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rdi + rdx*2 + 8], 0
jne 0x1400127d0
inc rdx
lea r8, [rdi + 8]
mov rcx, rax
call fcn.140025408
mov rcx, rdi
call fcn.140025a08
mov rdi, qword [rsp + 0x48]
test rsi, rsi
je 0x1400128aa
lea rdx, str.Find_another_hub_under_root_hub..._n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.Find_another_hub_under_root_hub..._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, 0xffffffffffffffff
nop word [rax + rax]
cmp word [rsi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x140012830
lea rcx, [rcx*2 + 0xa]
call fcn.140025c00
mov rbx, rax
test rax, rax
je 0x140012a11
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.140025408
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x140012870
inc rdx
lea rcx, [rbx + 8]
mov r8, rsi
call fcn.140025408
mov rcx, rbx
call fcn.1400124b0
mov rcx, rbx
mov r15d, eax
call fcn.140025a08
test r15d, r15d
jne 0x140012b1a
jmp 0x140012a11
lea rcx, str.Enter_else_bRetVal__DeviceNotFound__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r15d, r15d
jmp 0x140012a11
cmp dword [r14 + 0x1f], 0
je 0x140012a01
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x54]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x70]
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0xa
mov r9d, 0xa
mov qword [rsp + 0x20], rax
mov edx, 0x220420
mov dword [rsp + 0x70], r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140012a01
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x54], eax
cmp eax, 0xa
jbe 0x140012a01
mov ecx, eax
call fcn.140025c00
mov rdi, rax
test rax, rax
je 0x1400129fc
mov dword [rax], r12d
mov r8, rdi
mov r9d, dword [rsp + 0x54]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], 0
mov edx, 0x220420
mov qword [rsp + 0x30], rax
mov rcx, r13
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x14001297d
mov rcx, rdi
call fcn.140025a08
jmp 0x1400129fc
lea rcx, [rdi + 8]
call fcn.140012410
mov rcx, rdi
mov rbx, rax
call fcn.140025a08
test rbx, rbx
je 0x1400129fc
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.14001bd50
movzx eax, word [r14 + 0xe]
lea r8, str.VID__04XPID__04X
movzx r9d, word [r14 + 0xc]
lea rcx, [rbp - 0x80]
mov edx, 0x103
mov dword [rsp + 0x20], eax
call fcn.140001040
lea r8, [rbp - 0x80]
mov ecx, 2
lea rdx, str._s_found__n
call fcn.1400194a0
lea rdx, [rbp - 0x80]
lea rcx, str._s_found__n
call fcn.14000db70
lea rcx, [rbp - 0x80]
call fcn.14000a3a0
test eax, eax
jne 0x140012a2b
mov rdi, qword [rsp + 0x48]
xor r15d, r15d
lea rcx, str.Enter_bRetVal__DeviceNotFound__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, byte [rdi + 6]
inc r12d
cmp r12d, eax
ja 0x140012b03
mov rbx, qword [rsp + 0x58]
jmp 0x140012640
xor edx, edx
lea rcx, str.USB_
mov r8d, 0x208
call fcn.14001bd50
lea r8, [0x140048430]
mov edx, 0x104
lea rcx, str.USB_
call fcn.140025408
lea r8, [rbp - 0x80]
mov edx, 0x104
lea rcx, str.USB_
call fcn.140025470
lea r8, [0x14004843c]
mov edx, 0x104
lea rcx, str.USB_
call fcn.140025470
lea rdx, str.USB_
lea rcx, [0x140048440]
call fcn.14000db70
movzx r8d, byte [r14 + 0x16]
lea rdx, str.Find_the_atheros_dongle__config____d__n
mov ecx, 2
call fcn.1400194a0
movzx edx, byte [r14 + 0x16]
lea rcx, str.Find_the_atheros_dongle__config____d__n
call fcn.14000db70
cmp byte [r14 + 0x16], 0
jne 0x140012ae4
lea rcx, str.Enter_if_connectionInfoEx__CurrentConfigurationValue__NULL__n
mov r15d, 2
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x48]
call fcn.140025a08
jmp 0x140012b27
lea rcx, str.Enter_else_bRetVal__DeviceWorksFine___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x48]
mov r15d, 1
call fcn.140025a08
jmp 0x140012b27
mov rcx, rdi
call fcn.140025a08
jmp 0x140012b27
lea rcx, str.Enter__if__connectionInfo__NULL__connectionInfoEx__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.140025a08
test r14, r14
je 0x140012b2f
mov rcx, r14
call fcn.140025a08
mov rcx, qword [rsp + 0x58]
mov r14, qword [rsp + 0x2d8]
test rcx, rcx
je 0x140012b46
call fcn.140025a08
test rsi, rsi
je 0x140012b58
mov edx, 2
mov rcx, rsi
call fcn.1400198f4
test r13, r13
je 0x140012b66
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Leave_EnumerateHub___n
mov ecx, 2
call fcn.1400194a0
lea rcx, str.Leave_EnumerateHub___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, r15d
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400198d0
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret