Function at 0x40b398
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe0
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], 0
push 0xa
lea ecx, [ebp - 0x30]
call fcn.004358eb
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004013d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004013d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.004013d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004013d0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x48]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetEnumFTDIBUS
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40b494
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0x200
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x14]
call fcn.0043bd92
push eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov dword [ebp - 0x38], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0043bde1
cmp dword [ebp - 0x38], 0
jne 0x40b479
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x30]
call fcn.00435ad7
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x38], 0
je 0x40b42d
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b4a2
push 0
push 0
push str.Schl
call fcn.00444a94
lea ecx, [ebp - 0x30]
call fcn.004101e0
test eax, eax
jle 0x40b924
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x30]
call fcn.00410200
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40b5f8
lea edx, [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x30]
call fcn.00410220
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ba9b
push 0x46d17c
lea eax, [ebp - 0x14]
push eax
push 0x46d194
lea ecx, [ebp - 0x54]
push ecx
call fcn.0043bc6b
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x94]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.0043bbf7
mov dword [ebp - 0x98], eax
mov edx, dword [ebp - 0x98]
mov dword [ebp - 0x9c], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ba9b
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x58]
call fcn.0043b962
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.0043b962
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x46d1bc
call fcn.0043b9d0
mov dword [ebp - 0xa0], eax
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], ecx
mov byte [ebp - 4], 8
push ecx
mov ecx, esp
mov dword [ebp - 0x60], esp
lea edx, [ebp - 0x14]
push edx
call fcn.0043b6d7
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.0040fa6e
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0xb0]
push edx
lea ecx, [ebp - 0x34]
call fcn.0043ba9b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0043b962
lea ecx, [ebp - 0x34]
call fcn.004044f0
test eax, eax
jne 0x40b5f3
mov eax, dword [ebp - 0x44]
add eax, 1
mov dword [ebp - 0x44], eax
jmp 0x40b4c4
lea ecx, [ebp - 0x30]
call fcn.00410200
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
je 0x40b924
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00410220
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ba9b
push 9
lea edx, [ebp - 0x68]
push edx
lea ecx, [ebp - 0x14]
call fcn.0043258b
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0xb8]
push ecx
lea ecx, [ebp - 0x40]
call fcn.0043ba9b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.0043b962
push str.12345678A
lea edx, [ebp - 0x40]
push edx
call fcn.00410180
and eax, 0xff
test eax, eax
je 0x40b68a
push 0x46d1d4
lea ecx, [ebp - 0x40]
call fcn.0043baeb
jmp 0x40b603
push 8
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00432607
mov dword [ebp - 0xbc], eax
mov ecx, dword [ebp - 0xbc]
mov dword [ebp - 0xc0], ecx
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0xc0]
push edx
push 0x46d1dc
lea eax, [ebp - 0x70]
push eax
call fcn.0043bc6b
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], ecx
mov byte [ebp - 4], 0xc
mov edx, dword [ebp - 0xc8]
push edx
lea ecx, [ebp - 0x40]
call fcn.0043ba9b
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x70]
call fcn.0043b962
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x6c]
call fcn.0043b962
push str.0000Device_Parameters
lea eax, [ebp - 0x14]
push eax
push str.SYSTEMCurrentControlSetEnumFTDIBUS_
lea ecx, [ebp - 0x74]
push ecx
call fcn.0043bc6b
mov dword [ebp - 0xcc], eax
mov edx, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.0043bbf7
mov dword [ebp - 0xd4], eax
mov edx, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], edx
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0xd8]
push eax
lea ecx, [ebp - 0x14]
call fcn.0043ba9b
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x78]
call fcn.0043b962
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x74]
call fcn.0043b962
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x7c], esp
push 0x46d220
call fcn.0043b9d0
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0xe0], ecx
mov byte [ebp - 4], 0xf
push ecx
mov ecx, esp
mov dword [ebp - 0x80], esp
lea edx, [ebp - 0x14]
push edx
call fcn.0043b6d7
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x8c]
mov byte [ebp - 4], 5
call fcn.0040fa6e
mov dword [ebp - 0xe8], eax
mov ecx, dword [ebp - 0xe8]
mov dword [ebp - 0xec], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0xec]
push edx
lea ecx, [ebp - 0x34]
call fcn.0043ba9b
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x84]
call fcn.0043b962
lea ecx, [ebp - 0x34]
call fcn.004044f0
test eax, eax
jne 0x40b91f
cmp dword [ebp - 0x44], 1
jbe 0x40b8c3
mov eax, dword [0x471308]
add eax, 0x47e
push eax
lea ecx, [ebp - 0x10]
call fcn.0043c013
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x34]
push edx
lea ecx, [ebp - 0x10]
call fcn.004013f0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00432a7d
add esp, 0x10
push 0
push 4
lea ecx, [ebp - 0x14]
call fcn.004013f0
push eax
call fcn.00444a94
cmp eax, 6
jne 0x40b8c1
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0043b6d7
mov edx, dword [ebp - 0x88]
or edx, 1
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0043b962
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.0043b962
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0043b962
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043b962
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0043595f
mov eax, dword [ebp + 8]
jmp 0x40b987
jmp 0x40b91f
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043b6d7
mov ecx, dword [ebp - 0x88]
or ecx, 1
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0043b962
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.0043b962
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0043b962
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043b962
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0043595f
mov eax, dword [ebp + 8]
jmp 0x40b987
jmp 0x40b603
lea ecx, [ebp - 0x30]
call fcn.0043592a
push 0x4713a8
mov ecx, dword [ebp + 8]
call fcn.0043b9d0
mov edx, dword [ebp - 0x88]
or edx, 1
mov dword [ebp - 0x88], edx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.0043b962
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x10]
call fcn.0043b962
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0043b962
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.0043b962
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.0043595f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4