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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x434304]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
push str.Enter_EnumerateHub___n
lea ecx, [ebx + 2]
mov dword [ebp - 0x218], ebx
or edi, 0xffffffff
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x230], ebx
call fcn.00415320
add esp, 4
push str.Enter_EnumerateHub___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x4c
call fcn.004158a5
add esp, 4
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x410f41
push str.Enter_if__hubInfo__NULL__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x218], ebx
jmp 0x41139d
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x21c], eax
cmp eax, 0xffffffff
jne 0x410f78
push str.Enter_if__hHubDevice__INVALID_HANDLE_VALUE__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x218], ebx
jmp 0x41134c
push 0
lea ecx, [ebp - 0x220]
push ecx
mov ecx, dword [ebp - 0x224]
push 0x4c
push ecx
push 0x4c
push ecx
push 0x220408
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x410fa7
push str.Enter_if___DeviceIoControl_sizeof_USB_NODE_INFORMATION_____n
jmp 0x411346
mov esi, 0x16d
push esi
mov dword [ebp - 0x228], esi
mov dword [ebp - 0x220], esi
call fcn.004158a5
add esp, 4
push esi
mov ebx, eax
call fcn.004158a5
add esp, 4
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x411337
test ebx, ebx
je 0x411337
mov edx, dword [ebp - 0x224]
cmp byte [edx + 6], 1
mov edi, 1
mov dword [ebp - 0x234], edi
jb 0x41134c
lea ecx, [ecx]
mov esi, dword [ebp - 0x21c]
push 0
lea eax, [ebp - 0x228]
push eax
mov dword [ebx], edi
mov eax, dword [ebp - 0x228]
push eax
push ebx
push eax
push ebx
push 0x220448
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x411097
mov esi, dword [ebp - 0x22c]
mov edx, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
push ecx
mov dword [esi], edi
mov eax, dword [ebp - 0x220]
push eax
push esi
push eax
push esi
push 0x22040c
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x41122d
mov al, byte [esi + 0x16]
mov byte [ebx + 0x16], al
mov cl, byte [esi + 0x18]
mov byte [ebx + 0x18], cl
mov edx, dword [esi + 0x1f]
mov dword [ebx + 0x1f], edx
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [ebx + 0xc], edx
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov cx, word [esi + 0x14]
mov esi, dword [ebp - 0x21c]
mov word [ebx + 0x14], cx
cmp byte [ebx + 0x18], 0
je 0x411186
push edi
mov ecx, esi
call fcn.00410c10
mov esi, eax
add esp, 4
mov dword [ebp - 0x230], esi
test esi, esi
je 0x41116c
push str.Find_another_hub_under_root_hub..._n
mov ecx, 2
call fcn.00415320
add esp, 4
push str.Find_another_hub_under_root_hub..._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, esi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4110e0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 0xa]
push edx
call fcn.004158a5
mov esi, eax
add esp, 4
test esi, esi
je 0x41122d
push str.._
push 5
push esi
call fcn.00415b9a
mov edi, dword [ebp - 0x230]
mov eax, edi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411121
sub eax, edx
sar eax, 1
inc eax
push edi
push eax
lea eax, [esi + 8]
push eax
call fcn.00415b9a
add esp, 0xc
push esi
call fcn.00410ec0
add esp, 4
mov edi, eax
push esi
mov dword [ebp - 0x218], edi
call fcn.0041586b
add esp, 4
test edi, edi
jne 0x41134c
mov edi, dword [ebp - 0x234]
jmp 0x41122d
push str.Enter_else_bRetVal__DeviceNotFound__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x218], 0
jmp 0x41122d
cmp dword [ebx + 0x1f], 0
je 0x411218
mov ecx, edi
mov edx, esi
call fcn.00410d20
test eax, eax
je 0x411218
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x212]
push edx
mov word [ebp - 0x214], cx
call fcn.0041d650
movzx eax, word [ebx + 0xe]
movzx ecx, word [ebx + 0xc]
add esp, 0xc
push eax
push ecx
push str.VID__04XPID__04X
lea edx, [ebp - 0x214]
push 0x103
push edx
call fcn.00415638
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
push str._s_found__n
mov ecx, 2
call fcn.00415320
lea ecx, [ebp - 0x214]
push ecx
push str._s_found__n
call fcn.0040ca40
lea edx, [ebp - 0x214]
push edx
call fcn.00408ac0
add esp, 0x14
test eax, eax
jne 0x41124b
push str.Enter_bRetVal__DeviceNotFound__n
mov dword [ebp - 0x218], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x224]
movzx ecx, byte [eax + 6]
inc edi
mov dword [ebp - 0x234], edi
cmp edi, ecx
jbe 0x411000
jmp 0x41134c
push 0x208
push 0
push str.USB_
call fcn.0041d650
add esp, 0xc
xor eax, eax
movzx ecx, word [eax + 0x42edb4]
mov word [eax + str.USB_], cx
add eax, 2
test cx, cx
jne 0x411261
lea eax, [ebp - 0x214]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x411280
mov edi, str.USB_
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x411295
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.USB_
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4112c0
mov edx, dword [0x42edc0]
push str.USB_
push str.Device_instance_PVID__s_n
mov dword [edi], edx
call fcn.0040ca40
movzx eax, byte [ebx + 0x16]
push eax
push str.Find_the_atheros_dongle__config____d__n
mov ecx, 2
call fcn.00415320
movzx ecx, byte [ebx + 0x16]
push ecx
push str.Find_the_atheros_dongle__config____d__n
call fcn.0040ca40
add esp, 0x18
cmp byte [ebx + 0x16], 0
jne 0x411320
mov dword [ebp - 0x218], 2
push str.Enter_if_connectionInfoEx__CurrentConfigurationValue__NULL__n
jmp 0x411346
push str.Enter_else_bRetVal__DeviceWorksFine___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [ebp - 0x218], 1
jmp 0x41134c
mov dword [ebp - 0x218], 0
push str.Enter__if__connectionInfo__NULL__connectionInfoEx__NULL__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, dword [ebp - 0x224]
push edx
call fcn.0041586b
add esp, 4
test ebx, ebx
je 0x411368
push ebx
call fcn.0041586b
add esp, 4
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x41137b
push eax
call fcn.0041586b
add esp, 4
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x41138e
push eax
call fcn.00416027
add esp, 4
cmp dword [ebp - 0x21c], 0
je 0x4113a4
mov edi, dword [ebp - 0x21c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Leave_EnumerateHub___n
mov ecx, 2
call fcn.00415320
add esp, 4
push str.Leave_EnumerateHub___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041558a
mov esp, ebp
pop ebp
ret