Function at 0x409680
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58395b
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x5ebe74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x26
push str.SYSTEMCurrentControlSetEnumFTDIBUS_
lea ecx, [ebp - 0x140]
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0xf
mov byte [ebp - 0x140], 0
call fcn.00409b40
lea ecx, [ebp - 0x16c]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
push ecx
cmovae eax, dword [ebp - 0x140]
push 9
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409a8b
push 0x100
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00563b80
add esp, 0xc
mov dword [ebp - 0x168], 0x100
lea eax, [ebp - 0x168]
mov dword [ebp - 0x178], 0
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x409a7f
nop dword [eax]
mov edx, dword [ebp - 0x130]
lea esi, [ebp - 0x110]
mov dword [ebp - 0x160], edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x409785
mov eax, SysReAllocString
sub esi, ecx
sub eax, edx
cmp eax, esi
jb 0x409ae6
cmp dword [ebp - 0x12c], 0x10
lea eax, [ebp - 0x140]
lea ecx, [edx + esi]
mov dword [ebp - 0x118], 0
cmovae eax, dword [ebp - 0x140]
mov edi, 0xf
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x128]
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x15c], eax
cmp ecx, edi
jbe 0x409877
mov edi, ecx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x409804
mov edi, SysReAllocString
lea ecx, [edi + 0x24]
jmp 0x409824
cmp edi, 0x16
mov eax, 0x16
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x40984e
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x409ae1
push ecx
call fcn.004179e0
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x409adc
mov edx, dword [ebp - 0x160]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x164]
jmp 0x40986b
test eax, eax
je 0x409869
push eax
call fcn.004179e0
mov ecx, dword [ebp - 0x164]
add esp, 4
mov edx, dword [ebp - 0x160]
jmp 0x40986b
xor eax, eax
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x128], eax
push edx
push dword [ebp - 0x170]
mov dword [ebp - 0x118], ecx
push eax
mov dword [ebp - 0x114], edi
call fcn.00563600
mov eax, dword [ebp - 0x160]
lea ecx, [ebp - 0x110]
mov edi, dword [ebp - 0x15c]
add eax, edi
push esi
push ecx
push eax
call fcn.00563600
mov eax, dword [ebp - 0x164]
add esp, 0x18
mov byte [edi + eax], 0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x114]
mov eax, edx
mov ecx, dword [ebp - 0x118]
sub eax, ecx
push 0x17
push str.0000Device_Parameters
cmp eax, 0x17
jb 0x409909
cmp edx, 0x10
lea esi, [ebp - 0x128]
lea eax, [ecx + 0x17]
cmovae esi, dword [ebp - 0x128]
add esi, ecx
mov dword [ebp - 0x118], eax
push esi
call fcn.00563600
add esp, 0xc
mov byte [esi + 0x17], 0
lea eax, [ebp - 0x128]
jmp 0x409923
mov byte [ebp - 0x17c], 0
lea ecx, [ebp - 0x128]
push dword [ebp - 0x17c]
push 0x17
call fcn.00409c70
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x158], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x148], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x114]
cmp edx, 0x10
jb 0x40999d
mov ecx, dword [ebp - 0x128]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409993
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409adc
push edx
push ecx
call fcn.0056189b
add esp, 8
cmp dword [ebp - 0x144], 0x10
lea ecx, [ebp - 0x174]
push ecx
push 0x20006
lea eax, [ebp - 0x158]
cmovae eax, dword [ebp - 0x158]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409a03
push 4
lea eax, [ebp - 0x170]
mov dword [ebp - 0x170], 1
push eax
push 4
push 0
push str.LatencyTimer
push dword [ebp - 0x174]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x174]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x144]
mov dword [ebp - 0x168], 0x100
cmp edx, 0x10
jb 0x409a47
mov ecx, dword [ebp - 0x158]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409a3d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409adc
push edx
push ecx
call fcn.0056189b
add esp, 8
mov edi, dword [ebp - 0x178]
lea eax, [ebp - 0x168]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x110]
inc edi
push eax
push edi
push dword [ebp - 0x16c]
mov dword [ebp - 0x178], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x409770
push dword [ebp - 0x16c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x12c]
cmp edx, 0x10
jb 0x409ac1
mov ecx, dword [ebp - 0x140]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x409ab7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409adc
push edx
push ecx
call fcn.0056189b
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00561419
mov esp, ebp
pop ebp
ret
call fcn.005694c6
call fcn.004094a0
call fcn.00409540
int3