Function at 0x40ad46
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4309cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0x100
mov dword [ebp - 0x138], 0x100
cmp dword [ebp + 8], 0x80000005
je 0x40adad
cmp dword [ebp + 8], 0x80000001
je 0x40adad
cmp dword [ebp + 8], reloc.OLEAUT32.dll_SysReAllocString
je 0x40adad
cmp dword [ebp + 8], 0x80000003
je 0x40adad
xor eax, eax
jmp 0x40b09c
push 0x44587c
mov ecx, dword [ebp - 0x15c]
call fcn.0040a848
test eax, eax
jne 0x40adc8
xor eax, eax
jmp 0x40b09c
lea ecx, [ebp - 0x34]
call fcn.0040d5e1
mov dword [ebp - 4], 0
push 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040d6a4
test eax, eax
je 0x40adfa
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x15c]
call fcn.0040ab4c
jmp 0x40ae1d
push ecx
mov ecx, esp
mov dword [ebp - 0x148], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00425fbc
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 0x15c]
call fcn.0040b0c0
lea ecx, [ebp - 0x34]
call fcn.0040d65a
lea eax, [ebp - 0x134]
mov dword [ebp - 0x13c], eax
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x103
je 0x40b041
cmp dword [ebp - 0x10], 0
jne 0x40afd0
mov dword [ebp - 0x144], 0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x140]
call fcn.00425fbc
mov byte [ebp - 4], 1
push 0x445890
lea ecx, [ebp - 0x140]
call fcn.0042632a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x164], eax
mov ecx, dword [ebp - 0x164]
add ecx, 0x7fffffff
mov dword [ebp - 0x164], ecx
cmp dword [ebp - 0x164], 4
ja case.0x40aec7.3
mov edx, dword [ebp - 0x164]
jmp dword [edx*4 + 0x40b0ac]
push 8
push 0x445894
mov eax, dword [ebp - 0x13c]
push eax
call fcn.0041eef0
add esp, 0xc
test eax, eax
jne 0x40aefa
push 0x4458a0
lea ecx, [ebp - 0x140]
call fcn.0042632a
jmp 0x40af0c
mov ecx, dword [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x140]
call fcn.0042632a
mov dword [ebp - 0x144], 1
jmp 0x40af82
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x140]
call fcn.0042632a
mov dword [ebp - 0x144], 1
jmp 0x40af82
mov dword [ebp - 0x144], 1
push 8
push 0x4458a8
lea eax, [ebp - 0x134]
push eax
call fcn.0041eef0
add esp, 0xc
test eax, eax
jne 0x40af64
mov dword [ebp - 0x144], 0
mov ecx, dword [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x140]
call fcn.0042632a
jmp 0x40af82
mov dword [ebp - 0x144], 0
cmp dword [ebp - 0x144], 0
je 0x40afad
lea ecx, [ebp - 0x140]
call fcn.00408ae0
push eax
lea edx, [ebp - 0x134]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x15c]
call fcn.0040aa6b
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x138]
mov dword [ebp - 0x18], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x140]
call fcn.00425f4e
jmp 0x40b03c
cmp dword [ebp - 0x10], 0xea
jne 0x40b03a
cmp dword [ebp - 0x138], 0x100
je 0x40b000
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [ebp - 0x14c]
push ecx
call fcn.00425390
add esp, 4
mov edx, dword [ebp - 0x138]
shl edx, 1
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.00425367
add esp, 4
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x13c], edx
jmp 0x40b03c
jmp 0x40b041
jmp 0x40ae31
cmp dword [ebp - 0x138], 0x100
je 0x40b068
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x154], eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.00425390
add esp, 4
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x15c]
call fcn.0040aa54
mov dword [ebp - 0x158], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0040d61e
mov eax, dword [ebp - 0x158]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8