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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14004d010]
xor rax, rsp
mov qword [rbp + 0x190], rax
xor r12d, r12d
mov qword [rsp + 0x50], 0xffffffffffffffff
mov rbx, rcx
mov dword [rsp + 0x48], r12d
lea rdx, str.Enter_EnumerateHub___n
mov dword [rsp + 0x40], r12d
mov r15d, r12d
mov r14d, r12d
lea ecx, [r12 + 2]
mov r13d, r12d
mov esi, r12d
call fcn.140019630
lea rcx, str.Enter_EnumerateHub___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [r12 + 0x4c]
call fcn.140021cf0
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
jne 0x1400125d9
lea rcx, str.Enter_if__hubInfo__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x50]
jmp 0x140012965
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 qword [rsp + 0x50], rax
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140012620
lea rcx, str.Enter_if__hHubDevice__INVALID_HANDLE_VALUE__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001292a
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, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140012669
lea rcx, str.Enter_if___DeviceIoControl_sizeof_USB_NODE_INFORMATION_____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001292a
mov ecx, 0x16d
mov dword [rsp + 0x48], 0x16d
mov dword [rsp + 0x40], 0x16d
call fcn.140021cf0
mov ecx, dword [rsp + 0x40]
mov r14, rax
call fcn.140021cf0
mov r13, rax
test rax, rax
je 0x140012c0a
test r14, r14
je 0x140012c0a
mov r12d, 1
cmp byte [rdi + 6], r12b
jb 0x14001292a
nop dword [rax]
nop dword [rax + rax]
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
mov r8, r14
mov dword [r14], r12d
mov edx, 0x220448
mov r9d, dword [rsp + 0x48]
mov rcx, rbx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140012767
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r8, r13
mov dword [r13], r12d
mov edx, 0x22040c
mov r9d, dword [rsp + 0x40]
mov rcx, rbx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140012b26
movzx eax, byte [r13 + 0x16]
mov byte [r14 + 0x16], al
movzx eax, byte [r13 + 0x18]
mov byte [r14 + 0x18], al
mov eax, dword [r13 + 0x1f]
mov dword [r14 + 0x1f], eax
movups xmm0, xmmword [r13 + 4]
movups xmmword [r14 + 4], xmm0
movzx eax, word [r13 + 0x14]
mov word [r14 + 0x14], ax
cmp byte [r14 + 0x18], 0
je 0x1400129d4
xor eax, eax
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x38], rax
lea r8, [rsp + 0x60]
mov esi, eax
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x44]
mov edx, 0x220414
mov qword [rsp + 0x30], rax
mov rcx, rbx
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 0xa
lea r9d, [rsi + 0xa]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001287a
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
cmp eax, 0xa
jbe 0x14001287a
mov ecx, eax
call fcn.140021cf0
mov rdi, rax
test rax, rax
je 0x140012875
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, rbx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14001286d
mov r8, 0xffffffffffffffff
mov rcx, r8
inc rcx
cmp word [rdi + rcx*2 + 8], si
jne 0x140012823
inc rcx
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.140019b6c
mov rsi, rax
test rax, rax
je 0x14001286d
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2 + 8], 0
jne 0x140012853
inc rdx
lea r8, [rdi + 8]
mov rcx, rax
call fcn.14002168c
mov rcx, rdi
call fcn.140021af8
mov rdi, qword [rsp + 0x58]
test rsi, rsi
je 0x1400129bf
lea rdx, str.Find_another_hub_under_root_hub..._n
mov ecx, 2
call fcn.140019630
lea rcx, str.Find_another_hub_under_root_hub..._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, 0xffffffffffffffff
nop dword [rax + rax]
cmp word [rsi + rcx*2 + 2], 0
lea rcx, [rcx + 1]
jne 0x1400128b0
lea rcx, [rcx*2 + 0xa]
call fcn.140021cf0
mov rbx, rax
test rax, rax
je 0x140012b26
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.14002168c
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x1400128f0
inc rdx
lea rcx, [rbx + 8]
mov r8, rsi
call fcn.14002168c
mov rcx, rbx
call fcn.140012530
mov rcx, rbx
mov r15d, eax
call fcn.140021af8
test r15d, r15d
je 0x140012b26
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.140021af8
test r14, r14
je 0x140012941
mov rcx, r14
call fcn.140021af8
test r13, r13
je 0x14001294e
mov rcx, r13
call fcn.140021af8
test rsi, rsi
je 0x140012960
mov edx, 2
mov rcx, rsi
call fcn.140019b64
test rbx, rbx
je 0x14001296e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Leave_EnumerateHub___n
mov ecx, 2
call fcn.140019630
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.140019b40
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, str.Enter_else_bRetVal__DeviceNotFound__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor r15d, r15d
jmp 0x140012b26
cmp dword [r14 + 0x1f], 0
je 0x140012b16
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x4c]
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, rbx
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140012b16
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x4c], eax
cmp eax, 0xa
jbe 0x140012b16
mov ecx, eax
call fcn.140021cf0
mov rdi, rax
test rax, rax
je 0x140012b11
mov dword [rax], r12d
mov r8, rdi
mov r9d, dword [rsp + 0x4c]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], 0
mov edx, 0x220420
mov qword [rsp + 0x30], rax
mov rcx, rbx
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x140012a92
mov rcx, rdi
call fcn.140021af8
jmp 0x140012b11
lea rcx, [rdi + 8]
call fcn.140012490
mov rcx, rdi
mov rbx, rax
call fcn.140021af8
test rbx, rbx
je 0x140012b11
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.14001b960
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.140019630
lea rdx, [rbp - 0x80]
lea rcx, str._s_found__n
call fcn.14000db40
lea rcx, [rbp - 0x80]
call fcn.14000a410
test eax, eax
jne 0x140012b40
mov rdi, qword [rsp + 0x58]
xor r15d, r15d
lea rcx, str.Enter_bRetVal__DeviceNotFound__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
movzx eax, byte [rdi + 6]
inc r12d
mov rbx, qword [rsp + 0x50]
cmp r12d, eax
ja 0x14001292a
jmp 0x1400126c0
xor edx, edx
lea rcx, str.USB_
mov r8d, 0x208
call fcn.14001b960
lea r8, [0x140043060]
mov edx, 0x104
lea rcx, str.USB_
call fcn.14002168c
lea r8, [rbp - 0x80]
mov edx, 0x104
lea rcx, str.USB_
call fcn.1400216f4
lea r8, [0x14004306c]
mov edx, 0x104
lea rcx, str.USB_
call fcn.1400216f4
lea rdx, str.USB_
lea rcx, [0x140043070]
call fcn.14000db40
movzx r8d, byte [r14 + 0x16]
lea rdx, str.Find_the_atheros_dongle__config____d__n
mov ecx, 2
call fcn.140019630
movzx edx, byte [r14 + 0x16]
lea rcx, str.Find_the_atheros_dongle__config____d__n
call fcn.14000db40
cmp byte [r14 + 0x16], 0
jne 0x140012bf2
lea rcx, str.Enter_if_connectionInfoEx__CurrentConfigurationValue__NULL__n
mov r15d, 2
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x140012925
lea rcx, str.Enter_else_bRetVal__DeviceWorksFine___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r15d, 1
jmp 0x140012925
lea rcx, str.Enter__if__connectionInfo__NULL__connectionInfoEx__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x14001292a