Function at 0x140013000
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 [0x14004e010]
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.14001a030
lea rcx, str.Enter_EnumerateHub___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [r12 + 0x4c]
call fcn.1400226a4
mov qword [rsp + 0x58], rax
mov rdi, rax
test rax, rax
jne 0x1400130a9
lea rcx, str.Enter_if__hubInfo__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rbx, qword [rsp + 0x50]
jmp 0x140013435
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 0x1400130f0
lea rcx, str.Enter_if__hHubDevice__INVALID_HANDLE_VALUE__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400133fa
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 0x140013139
lea rcx, str.Enter_if___DeviceIoControl_sizeof_USB_NODE_INFORMATION_____n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400133fa
mov ecx, 0x16d
mov dword [rsp + 0x48], 0x16d
mov dword [rsp + 0x40], 0x16d
call fcn.1400226a4
mov ecx, dword [rsp + 0x40]
mov r14, rax
call fcn.1400226a4
mov r13, rax
test rax, rax
je 0x1400136da
test r14, r14
je 0x1400136da
mov r12d, 1
cmp byte [rdi + 6], r12b
jb 0x1400133fa
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 0x140013237
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 0x1400135f6
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 0x1400134a4
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 0x14001334a
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x44], eax
cmp eax, 0xa
jbe 0x14001334a
mov ecx, eax
call fcn.1400226a4
mov rdi, rax
test rax, rax
je 0x140013345
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 0x14001333d
mov r8, 0xffffffffffffffff
mov rcx, r8
inc rcx
cmp word [rdi + rcx*2 + 8], si
jne 0x1400132f3
inc rcx
mov eax, 2
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.14001a57c
mov rsi, rax
test rax, rax
je 0x14001333d
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rdi + rdx*2 + 8], 0
jne 0x140013323
inc rdx
lea r8, [rdi + 8]
mov rcx, rax
call fcn.1400223c4
mov rcx, rdi
call fcn.1400224ac
mov rdi, qword [rsp + 0x58]
test rsi, rsi
je 0x14001348f
lea rdx, str.Find_another_hub_under_root_hub..._n
mov ecx, 2
call fcn.14001a030
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 0x140013380
lea rcx, [rcx*2 + 0xa]
call fcn.1400226a4
mov rbx, rax
test rax, rax
je 0x1400135f6
lea r8, str.._
mov edx, 5
mov rcx, rax
call fcn.1400223c4
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rsi + rdx*2], 0
jne 0x1400133c0
inc rdx
lea rcx, [rbx + 8]
mov r8, rsi
call fcn.1400223c4
mov rcx, rbx
call fcn.140013000
mov rcx, rbx
mov r15d, eax
call fcn.1400224ac
test r15d, r15d
je 0x1400135f6
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.1400224ac
test r14, r14
je 0x140013411
mov rcx, r14
call fcn.1400224ac
test r13, r13
je 0x14001341e
mov rcx, r13
call fcn.1400224ac
test rsi, rsi
je 0x140013430
mov edx, 2
mov rcx, rsi
call fcn.14001a574
test rbx, rbx
je 0x14001343e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, str.Leave_EnumerateHub___n
mov ecx, 2
call fcn.14001a030
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.14001a550
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 0x1400135f6
cmp dword [r14 + 0x1f], 0
je 0x1400135e6
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 0x1400135e6
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x4c], eax
cmp eax, 0xa
jbe 0x1400135e6
mov ecx, eax
call fcn.1400226a4
mov rdi, rax
test rax, rax
je 0x1400135e1
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 0x140013562
mov rcx, rdi
call fcn.1400224ac
jmp 0x1400135e1
lea rcx, [rdi + 8]
call fcn.140012f60
mov rcx, rdi
mov rbx, rax
call fcn.1400224ac
test rbx, rbx
je 0x1400135e1
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x208
call fcn.14001c4c0
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.14001a030
lea rdx, [rbp - 0x80]
lea rcx, str._s_found__n
call fcn.14000e530
lea rcx, [rbp - 0x80]
call fcn.14000a5d0
test eax, eax
jne 0x140013610
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 0x1400133fa
jmp 0x140013190
xor edx, edx
lea rcx, str.USB_
mov r8d, 0x208
call fcn.14001c4c0
lea r8, [0x140043fa0]
mov edx, 0x104
lea rcx, str.USB_
call fcn.1400223c4
lea r8, [rbp - 0x80]
mov edx, 0x104
lea rcx, str.USB_
call fcn.14002242c
lea r8, [0x140043fac]
mov edx, 0x104
lea rcx, str.USB_
call fcn.14002242c
lea rdx, str.USB_
lea rcx, [0x140043fb0]
call fcn.14000e530
movzx r8d, byte [r14 + 0x16]
lea rdx, str.Find_the_atheros_dongle__config____d__n
mov ecx, 2
call fcn.14001a030
movzx edx, byte [r14 + 0x16]
lea rcx, str.Find_the_atheros_dongle__config____d__n
call fcn.14000e530
cmp byte [r14 + 0x16], 0
jne 0x1400136c2
lea rcx, str.Enter_if_connectionInfoEx__CurrentConfigurationValue__NULL__n
mov r15d, 2
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400133f5
lea rcx, str.Enter_else_bRetVal__DeviceWorksFine___n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov r15d, 1
jmp 0x1400133f5
lea rcx, str.Enter__if__connectionInfo__NULL__connectionInfoEx__NULL__n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1400133fa