Function at 0x4092ca
Capabilities:
Enumerate pe sections
Read .ini file

Disassembly:
sub esp, 0x264
push esi
push edi
mov edi, dword [esp + 0x270]
mov esi, dword [edi + 0x1148]
test esi, esi
jne 0x40930e
push str.CUsbDevs::UpdateMaxPortSpeed
push 0xbab
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.0044fe2e
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409767
or dword [esi + 4], 0xffffffff
mov eax, dword [edi + 0x1148]
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x10], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
test ecx, ecx
je 0x409338
movzx eax, byte [ecx + 0x17]
mov dword [esi + 4], eax
push ebx
push ebp
push 2
pop ebp
test edx, edx
je 0x40939e
mov eax, dword [edx + 8]
test al, 4
je 0x40938c
mov dword [esi + 4], 3
mov eax, dword [edi + 0xde0]
test eax, eax
je 0x40948a
mov eax, dword [eax + 0x1148]
test eax, eax
je 0x40948a
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40948a
test byte [eax + 0xc], 4
je 0x40948a
mov dword [esi + 4], 4
jmp 0x40948a
and al, 2
xor ecx, ecx
cmp al, 2
sete cl
inc ecx
mov dword [esi + 4], ecx
jmp 0x40948a
mov eax, dword [edi + 0xde0]
test eax, eax
je 0x4093c8
mov ecx, dword [eax + 0x1148]
test ecx, ecx
je 0x4093c8
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x4093c8
movzx eax, byte [ecx + 0x17]
cmp eax, dword [esi + 4]
jle 0x40948a
jmp 0x409437
cmp dword [edi + 0x1154], 0
je 0x40943c
test eax, eax
je 0x40948a
mov ecx, dword [eax + 0x1154]
test ecx, ecx
je 0x40943c
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add ecx, 0xe38
push ecx
call ebx
test eax, eax
jne 0x409461
mov eax, dword [edi + 0xde0]
mov eax, dword [eax + 0x1154]
push str.ROOT_HUB20_
add eax, 0xe38
push eax
call ebx
test eax, eax
jne 0x409487
mov eax, dword [edi + 0xde0]
push dword [eax + 0x1154]
call fcn.0044ea06
test eax, eax
je 0x40948a
mov eax, dword [edi + 0x1174]
cmp eax, ebp
jle 0x409487
mov dword [esi + 4], eax
jmp 0x40948a
test eax, eax
je 0x40948a
mov eax, dword [eax + 0x1154]
test eax, eax
je 0x40948a
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add eax, 0xe38
push eax
call ebx
test eax, eax
je 0x40946a
mov dword [esi + 4], 1
jmp 0x40948a
mov eax, dword [edi + 0xde0]
mov eax, dword [eax + 0x1154]
push str.ROOT_HUB20_
add eax, 0xe38
push eax
call ebx
test eax, eax
je 0x40948a
mov dword [esi + 4], ebp
cmp dword [esi + 4], 3
jne 0x4095f8
mov eax, dword [esp + 0x27c]
mov ecx, dword [eax + 0x1154]
test ecx, ecx
je 0x4095f8
mov edx, dword [eax + 0x1144]
add ecx, 0xe38
cmp dword [edx], 0
je 0x4094d0
mov eax, dword [eax + 0xde0]
mov eax, dword [eax + 0x1154]
test eax, eax
je 0x4094d0
lea ecx, [eax + 0xe38]
push dword [esi]
lea eax, [esp + 0x20]
push ecx
push str._sPort_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ebx, 0x50dcd0
push ebx
push 0
lea eax, [esp + 0x24]
push eax
mov ebp, str.SuperSpeedPlusPorts
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x409531
push 4
pop eax
mov dword [esi + 4], eax
cmp dword [0x51adac], eax
jl 0x4095f8
push eax
call fcn.00410c0b
push eax
push str.UMPS_11_fromreg:portmaxspd_S
push 4
call fcn.0044fe2e
add esp, 0xc
jmp 0x4095f8
cmp dword [0x51adac], 4
jl 0x409548
push str.UMPS_12
push 4
call fcn.0044fe2e
pop ecx
pop ecx
cmp dword [esi + 0x14], 0
je 0x4095f8
cmp dword [0x51adac], 4
jl 0x409569
push str.UMPS_13
push 4
call fcn.0044fe2e
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x1f], 1
jne 0x4095f8
cmp dword [0x51adac], 4
jl 0x40958d
push str.UMPS_14
push 4
call fcn.0044fe2e
pop ecx
pop ecx
cmp dword [esi + 0x18], 0
je 0x4095f8
cmp dword [0x51adac], 4
jl 0x4095aa
push str.UMPS_15
push 4
call fcn.0044fe2e
pop ecx
pop ecx
mov eax, dword [esi + 0x18]
test byte [eax + 0xc], 4
je 0x4095f8
push 4
pop eax
mov dword [esi + 4], eax
cmp dword [0x51adac], eax
jl 0x4095d7
push eax
call fcn.00410c0b
push eax
push str.UMPS_16_fromconnspd:portmaxspd_S
push 4
call fcn.0044fe2e
add esp, 0xc
push ebx
push 0
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x4095f8
push ebx
push 1
lea eax, [esp + 0x24]
push eax
push ebp
call fcn.0042a740
cmp dword [esi + 4], 0xffffffff
jne 0x409607
mov eax, dword [edi + 0x1174]
mov dword [esi + 4], eax
mov edx, dword [esp + 0x18]
mov ebx, 0x300
test edx, edx
je 0x40967a
movzx eax, word [edx + 6]
lea ecx, [edi + 0x115c]
mov dword [ecx], eax
movzx eax, byte [edx + 0x17]
cmp eax, dword [edi + 0x1178]
jle 0x409632
mov dword [edi + 0x1178], eax
push 2
pop ebp
cmp dword [edi + 0x1178], ebp
jge 0x40967d
mov ecx, dword [ecx]
cmp ecx, 0x200
jl 0x40967d
cmp ecx, ebx
jge 0x40967d
mov eax, dword [edi + 0x1148]
cmp dword [eax + 0x20], 0
je 0x40967d
mov eax, dword [edi + 0x1144]
test eax, eax
je 0x409672
test byte [eax + 0x279], 1
je 0x40967d
mov dword [edi + 0x1178], ebp
jmp 0x40967d
cmp byte [edx + 0xb], 0x40
jne 0x40967d
jmp 0x40966a
push 2
pop ebp
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4096c5
mov eax, dword [eax + 0xc]
test al, 0xa
je 0x4096c5
test edx, edx
je 0x4096a4
cmp byte [edx + 0x18], 0
je 0x4096a4
cmp word [edx + 6], bx
jae 0x4096a4
mov dword [edi + 0x1178], ebp
jmp 0x4096eb
test al, 8
je 0x4096b9
push 4
lea eax, [edi + 0x1178]
pop ecx
cmp dword [eax], ecx
jge 0x4096eb
mov dword [eax], ecx
jmp 0x4096eb
mov dword [edi + 0x1178], 3
jmp 0x4096eb
test edx, edx
je 0x4096eb
cmp word [edx + 6], bx
jb 0x4096eb
cmp dword [edi + 0x116c], 0xa
jb 0x4096eb
cmp dword [edi + 0x1170], 0xa
jb 0x4096eb
mov dword [edi + 0x1178], 4
mov ecx, dword [esp + 0x14]
pop ebp
pop ebx
test ecx, ecx
je 0x40973f
mov eax, dword [ecx + 8]
and eax, 0x30
cmp al, 0x30
jne 0x40973f
mov eax, dword [ecx + 0xc]
movzx ecx, word [ecx + 0xa]
inc eax
imul eax, ecx
cmp eax, 5
je 0x409731
cmp eax, 0xa
je 0x409725
cmp eax, 0x14
jne 0x40973f
mov eax, dword [esi + 4]
cmp eax, 6
jg 0x40973c
push 6
jmp 0x40973b
mov eax, dword [esi + 4]
cmp eax, 5
jg 0x40973c
push 5
jmp 0x40973b
mov eax, dword [esi + 4]
cmp eax, 3
jg 0x40973c
push 3
pop eax
mov dword [esi + 4], eax
cmp dword [0x51adac], 4
jl 0x409767
push dword [esi + 4]
call fcn.00410c0b
push eax
add edi, 0xd90
push edi
push str.UMPS_10__s__portmaxspd_S
push 4
call fcn.0044fe2e
add esp, 0x10
pop edi
pop esi
add esp, 0x264
ret 8