Function at 0x4086b2
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x260
push esi
push edi
mov edi, dword [esp + 0x26c]
mov esi, dword [edi + 0xfc4]
test esi, esi
jne 0x4086f6
push str.CUsbDevs::UpdateMaxPortSpeed
push 0x968
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00449e4d
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408aed
or dword [esi + 4], 0xffffffff
mov eax, dword [edi + 0xfc4]
push ebp
mov ebp, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x40871a
movzx ecx, byte [ebp + 0x17]
mov dword [esi + 4], ecx
push ebx
test eax, eax
je 0x40877c
mov eax, dword [eax + 8]
test al, 4
je 0x40876a
mov dword [esi + 4], 3
mov eax, dword [edi + 0xd5c]
test eax, eax
je 0x40886f
mov eax, dword [eax + 0xfc4]
test eax, eax
je 0x40886f
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40886f
test byte [eax + 0xc], 4
je 0x40886f
mov dword [esi + 4], 4
jmp 0x40886f
and al, 2
xor ecx, ecx
cmp al, 2
sete cl
inc ecx
mov dword [esi + 4], ecx
jmp 0x40886f
mov eax, dword [edi + 0xd5c]
test eax, eax
je 0x4087a6
mov ecx, dword [eax + 0xfc4]
test ecx, ecx
je 0x4087a6
mov ecx, dword [ecx + 0x10]
test ecx, ecx
je 0x4087a6
movzx eax, byte [ecx + 0x17]
cmp eax, dword [esi + 4]
jle 0x40886f
jmp 0x408818
cmp dword [edi + 0xfcc], 0
je 0x40881d
test eax, eax
je 0x40886f
mov ecx, dword [eax + 0xfcc]
test ecx, ecx
je 0x40881d
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add ecx, 0xe38
push ecx
call ebx
test eax, eax
jne 0x408842
mov eax, dword [edi + 0xd5c]
mov eax, dword [eax + 0xfcc]
push str.ROOT_HUB20_
add eax, 0xe38
push eax
call ebx
test eax, eax
jne 0x408868
mov eax, dword [edi + 0xd5c]
push dword [eax + 0xfcc]
call fcn.00448e24
test eax, eax
je 0x40886f
mov al, byte [edi + 0xcf8]
cmp al, 2
jbe 0x408868
movzx eax, al
mov dword [esi + 4], eax
jmp 0x40886f
test eax, eax
je 0x40886f
mov eax, dword [eax + 0xfcc]
test eax, eax
je 0x40886f
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add eax, 0xe38
push eax
call ebx
test eax, eax
je 0x40884b
mov dword [esi + 4], 1
jmp 0x40886f
mov eax, dword [edi + 0xd5c]
mov eax, dword [eax + 0xfcc]
push str.ROOT_HUB20_
add eax, 0xe38
push eax
call ebx
test eax, eax
je 0x40886f
mov dword [esi + 4], 2
cmp dword [0x512584], 4
jl 0x408897
push dword [esi + 4]
call fcn.0040f7ce
push eax
lea eax, [edi + 0xd0a]
push eax
push str.UMPS_10__s__portmaxspd_S
push 4
call fcn.00449e4d
add esp, 0x10
cmp dword [esi + 4], 3
jne 0x408a09
mov eax, dword [esp + 0x278]
mov ecx, dword [eax + 0xfcc]
test ecx, ecx
je 0x408a09
mov edx, dword [eax + 0xfc0]
add ecx, 0xe38
cmp dword [edx], 0
je 0x4088dd
mov eax, dword [eax + 0xd5c]
mov eax, dword [eax + 0xfcc]
test eax, eax
je 0x4088dd
lea ecx, [eax + 0xe38]
push dword [esi]
lea eax, [esp + 0x1c]
push ecx
push str._sPort_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ebx, 0x505358
push ebx
push 0
lea eax, [esp + 0x20]
push eax
mov ebp, str.SuperSpeedPlusPorts
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x40893e
push 4
pop eax
mov dword [esi + 4], eax
cmp dword [0x512584], eax
jl 0x408a05
push eax
call fcn.0040f7ce
push eax
push str.UMPS_11_fromreg:portmaxspd_S
push 4
call fcn.00449e4d
add esp, 0xc
jmp 0x408a05
cmp dword [0x512584], 4
jl 0x408955
push str.UMPS_12
push 4
call fcn.00449e4d
pop ecx
pop ecx
cmp dword [esi + 0x10], 0
je 0x408a05
cmp dword [0x512584], 4
jl 0x408976
push str.UMPS_13
push 4
call fcn.00449e4d
pop ecx
pop ecx
mov eax, dword [esi + 0x10]
cmp dword [eax + 0x1f], 1
jne 0x408a05
cmp dword [0x512584], 4
jl 0x40899a
push str.UMPS_14
push 4
call fcn.00449e4d
pop ecx
pop ecx
cmp dword [esi + 0x14], 0
je 0x408a05
cmp dword [0x512584], 4
jl 0x4089b7
push str.UMPS_15
push 4
call fcn.00449e4d
pop ecx
pop ecx
mov eax, dword [esi + 0x14]
test byte [eax + 0xc], 4
je 0x408a05
push 4
pop eax
mov dword [esi + 4], eax
cmp dword [0x512584], eax
jl 0x4089e4
push eax
call fcn.0040f7ce
push eax
push str.UMPS_16_fromconnspd:portmaxspd_S
push 4
call fcn.00449e4d
add esp, 0xc
push ebx
push 0
lea eax, [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x408a05
push ebx
push 1
lea eax, [esp + 0x20]
push eax
push ebp
call fcn.004288e7
mov ebp, dword [esp + 0x10]
cmp dword [esi + 4], 0xffffffff
pop ebx
jne 0x408a1a
movzx eax, byte [edi + 0xcf8]
mov dword [esi + 4], eax
mov edx, 0x300
test ebp, ebp
je 0x408a89
movzx eax, word [ebp + 6]
lea ecx, [edi + 0xfd0]
mov dword [ecx], eax
movzx eax, byte [ebp + 0x17]
cmp eax, dword [edi + 0xfd4]
jle 0x408a41
mov dword [edi + 0xfd4], eax
push 2
pop esi
cmp dword [edi + 0xfd4], esi
jge 0x408a8c
mov ecx, dword [ecx]
cmp ecx, 0x200
jl 0x408a8c
cmp ecx, edx
jge 0x408a8c
mov eax, dword [edi + 0xfc4]
cmp dword [eax + 0x18], 0
je 0x408a8c
mov eax, dword [edi + 0xfc0]
test eax, eax
je 0x408a81
test byte [eax + 0x279], 1
je 0x408a8c
mov dword [edi + 0xfd4], esi
jmp 0x408a8c
cmp byte [ebp + 0xb], 0x40
jne 0x408a8c
jmp 0x408a79
push 2
pop esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x408ac6
mov eax, dword [eax + 0xc]
test al, 0xa
je 0x408ac6
test ebp, ebp
je 0x408ab3
cmp byte [ebp + 0x18], 0
je 0x408ab3
cmp word [ebp + 6], dx
jae 0x408ab3
mov dword [edi + 0xfd4], esi
jmp 0x408aec
test al, 8
push 0
pop eax
setne al
add eax, 3
mov dword [edi + 0xfd4], eax
jmp 0x408aec
test ebp, ebp
je 0x408aec
cmp word [ebp + 6], dx
jb 0x408aec
cmp dword [0x4bb898], 0xa
jb 0x408aec
cmp dword [0x4bb89c], 0xa
jb 0x408aec
mov dword [edi + 0xfd4], 4
pop ebp
pop edi
pop esi
add esp, 0x260
ret 8