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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x1148]
test esi, esi
jne 0x4094b6
push str.CUsbDevs::UpdateSpeeds
push 0xbe0
push str..CUsbDevs.cpp
push str.INT3_in__S_line__u__function__S
push 1
call fcn.00451479
add esp, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409938
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 [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
test ecx, ecx
je 0x4094dd
movzx eax, byte [ecx + 0x17]
mov dword [esi + 4], eax
push ebx
test edx, edx
je 0x40953f
mov eax, dword [edx + 8]
test al, 4
je 0x40952d
mov dword [esi + 4], 3
mov edi, dword [edi + 0xde0]
test edi, edi
je 0x409638
mov edi, dword [edi + 0x1148]
test edi, edi
je 0x409638
mov edi, dword [edi + 0x18]
test edi, edi
je 0x409638
test byte [edi + 0xc], 4
je 0x409638
mov dword [esi + 4], 4
jmp 0x409638
and al, 2
xor ecx, ecx
cmp al, 2
sete cl
inc ecx
mov dword [esi + 4], ecx
jmp 0x409638
mov eax, dword [edi + 0xde0]
test eax, eax
je 0x40956f
mov ecx, dword [eax + 0x1148]
test ecx, ecx
je 0x40956f
mov ecx, dword [ecx + 0x14]
test ecx, ecx
je 0x40956f
movzx eax, byte [ecx + 0x17]
cmp eax, dword [esi + 4]
jle 0x409638
mov dword [esi + 4], eax
jmp 0x409638
cmp dword [edi + 0x1154], 0
je 0x4095e6
test eax, eax
je 0x409638
mov ecx, dword [eax + 0x1154]
test ecx, ecx
je 0x4095e6
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add ecx, 0xe3c
push ecx
call ebx
test eax, eax
jne 0x40960b
mov eax, dword [edi + 0xde0]
mov eax, dword [eax + 0x1154]
push str.ROOT_HUB20_
add eax, 0xe3c
push eax
call ebx
test eax, eax
jne 0x409631
mov eax, dword [edi + 0xde0]
push dword [eax + 0x1154]
call fcn.0044ff19
test eax, eax
je 0x409638
mov edi, dword [edi + 0x1174]
push 2
pop eax
cmp edi, eax
jle 0x409567
mov dword [esi + 4], edi
jmp 0x409638
test eax, eax
je 0x409638
mov eax, dword [eax + 0x1154]
test eax, eax
je 0x409638
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrW]
push str.ROOT_HUB_
add eax, 0xe3c
push eax
call ebx
test eax, eax
je 0x409614
mov dword [esi + 4], 1
jmp 0x409638
mov eax, dword [edi + 0xde0]
mov eax, dword [eax + 0x1154]
push str.ROOT_HUB20_
add eax, 0xe3c
push eax
call ebx
test eax, eax
je 0x409638
mov dword [esi + 4], 2
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x4096cc
mov eax, dword [ebp - 4]
test eax, eax
je 0x409663
test dword [eax + 0xc], 4
jne 0x409663
push str.ConnInfoSSP_available_but_device_is_not_operating_at_SuperSpeedPlus____ConnInfoSSP_must_be_wrong____ignore
push 3
call fcn.00451479
pop ecx
pop ecx
jmp 0x4096cc
mov eax, dword [ecx + 8]
push 3
shr eax, 4
pop edi
and eax, edi
cmp eax, edi
jne 0x40967f
mov eax, dword [ecx + 0xc]
movzx ecx, word [ecx + 0xa]
inc eax
imul eax, ecx
jmp 0x409698
cmp eax, 2
jne 0x4096cc
mov eax, dword [ecx + 0xc]
movzx ecx, word [ecx + 0xa]
inc eax
imul eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp eax, 5
je 0x4096c0
cmp eax, 0xa
je 0x4096b4
cmp eax, 0x14
jne 0x4096cc
mov eax, dword [esi + 4]
cmp eax, 6
jg 0x4096c9
push 6
pop eax
jmp 0x4096c9
mov eax, dword [esi + 4]
cmp eax, 5
jg 0x4096c9
push 5
jmp 0x4096b1
mov eax, dword [esi + 4]
cmp eax, edi
jg 0x4096c9
mov eax, edi
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
cmp eax, dword [esi + 4]
jle 0x4096d7
mov dword [esi + 4], eax
cmp dword [esi + 4], 3
jl 0x4097d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x1154]
test ecx, ecx
je 0x4097d0
lea edx, [ecx + 0xe3c]
mov ecx, dword [eax + 0x1144]
test ecx, ecx
je 0x40971d
cmp dword [ecx], 0
je 0x40971d
mov eax, dword [eax + 0xde0]
mov eax, dword [eax + 0x1154]
test eax, eax
je 0x40971d
lea edx, [eax + 0xe3c]
push dword [esi]
lea eax, [ebp - 0x264]
push edx
push str._sPort_i
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov ebx, 0x50fcf0
push ebx
push 0
lea eax, [ebp - 0x264]
push eax
mov edi, str.SuperSpeedPlusPorts
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x40976c
cmp dword [esi + 4], 4
jge 0x4097d0
push 4
pop eax
mov dword [esi + 4], eax
cmp dword [0x51cdd4], eax
jl 0x4097d0
push eax
jmp 0x409786
lea ecx, [eax - 4]
cmp ecx, 2
ja 0x40979d
cmp eax, dword [esi + 4]
jle 0x4097d0
mov dword [esi + 4], eax
cmp dword [0x51cdd4], 4
jl 0x4097d0
push eax
call fcn.004115b5
push eax
push str.USPD_11_fromini:portmaxspd_S
push 4
call fcn.00451479
add esp, 0xc
jmp 0x4097d0
cmp dword [esi + 4], 4
jl 0x4097d0
mov eax, dword [esi + 4]
push ebx
mov dword [ebp + 0xc], eax
push 0
lea eax, [ebp - 0x264]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [ebp + 0xc], eax
je 0x4097d0
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.0042afb2
cmp dword [esi + 4], 0xffffffff
jne 0x409805
cmp dword [0x51cdd4], 4
jl 0x4097f7
mov eax, dword [ebp + 8]
push dword [eax + 0x1174]
push str.USPD_16__u
push 4
call fcn.00451479
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1174]
mov dword [esi + 4], ecx
jmp 0x409808
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0xc]
test edi, edi
je 0x409879
movzx ecx, word [edi + 6]
lea edx, [eax + 0x115c]
mov dword [edx], ecx
movzx ecx, byte [edi + 0x17]
cmp ecx, dword [eax + 0x1178]
jle 0x40982d
mov dword [eax + 0x1178], ecx
push 2
pop ebx
cmp dword [eax + 0x1178], ebx
jge 0x40987c
mov edx, dword [edx]
cmp edx, 0x200
jl 0x40987c
cmp edx, 0x300
jge 0x40987c
mov ecx, dword [eax + 0x1148]
cmp dword [ecx + 0x20], 0
je 0x40987c
mov ecx, dword [eax + 0x1144]
test ecx, ecx
je 0x409871
test byte [ecx + 0x279], 1
je 0x40987c
mov dword [eax + 0x1178], ebx
jmp 0x40987c
cmp byte [edi + 0xb], 0x40
jne 0x40987c
jmp 0x409869
push 2
pop ebx
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4098c9
mov ecx, dword [ecx + 0xc]
test cl, 0xa
je 0x4098c9
test edi, edi
je 0x4098a8
cmp byte [edi + 0x18], 0
je 0x4098a8
mov edx, 0x300
cmp word [edi + 6], dx
jae 0x4098a8
mov dword [eax + 0x1178], ebx
jmp 0x409900
test cl, 8
je 0x4098bd
push 4
add eax, 0x1178
pop ecx
cmp dword [eax], ecx
jge 0x409900
mov dword [eax], ecx
jmp 0x409900
mov dword [eax + 0x1178], 3
jmp 0x409900
test edi, edi
je 0x409900
movzx ecx, word [edi + 6]
mov edx, 0x310
cmp cx, dx
jb 0x409900
cmp dword [eax + 0x116c], 0xa
jb 0x409900
cmp dword [eax + 0x1170], 0xa
jb 0x409900
add edx, 0x10
cmp cx, dx
sbb ecx, ecx
neg ecx
add ecx, 4
mov dword [eax + 0x1178], ecx
cmp dword [0x51cdd4], 4
pop ebx
jl 0x409938
mov edi, dword [ebp + 8]
push dword [edi + 0x1178]
call fcn.004115b5
push eax
push dword [esi + 4]
call fcn.004115b5
push eax
add edi, 0xd90
push edi
push str.USPD_end__s__portmaxspd_S_devmaxspd_S
push 4
call fcn.00451479
add esp, 0x14
pop edi
pop esi
leave
ret 8