Function at 0x40ab10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x442ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x466df4]
xor eax, ebp
mov dword [ebp + 0x224], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 0x234]
mov eax, dword [ebp + 0x238]
mov ebx, dword [ebp + 0x230]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0
call fcn.0040c780
mov ecx, dword [esi + 0x10]
mov esi, dword [ebp - 0x14]
mov edi, dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
or edi, 0x20019
mov byte [ebp - 4], 1
mov esi, dword [esi]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x40abb3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
cmp esi, 0x80000004
je 0x40ac2f
cmp esi, 0x80000050
je 0x40ac2f
lea eax, [ebp - 0x28]
push eax
push edi
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ac32
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
push eax
call fcn.00405b50
test al, al
jne 0x40ac32
or dword [ebx + 0x14], 0x200
lea ecx, [ebp - 0x40]
call fcn.0040cea0
mov esi, eax
push esi
call fcn.0040bcc0
add esp, 4
mov edi, eax
mov ecx, ebx
push edi
call fcn.0040a3f0
test al, al
je 0x40aeed
push edi
push esi
push dword [ebx + 0x30]
call fcn.004246a0
mov dword [ebx + 0x20], 1
add esp, 0xc
mov bl, 1
jmp 0x40aeef
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebx]
call fcn.004080a0
push eax
mov eax, dword [esi + 0x14]
mov ecx, ebx
call eax
test al, al
je 0x40aeed
or dword [ebx + 0x14], 1
lea ecx, [ebx + 0x28]
xor edi, edi
call fcn.00404fa0
test al, al
je 0x40aca4
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x14]
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40ac82
cmp eax, 0xea
jne 0x40aca4
lea ecx, [ebp - 0x20]
call fcn.004039e0
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.004040e0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x28]
call fcn.00403990
push 0
push 0x108
push 2
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp]
call fcn.00403220
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
mov eax, ecx
shr eax, 2
not al
test al, 1
je 0x40adb9
nop dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push edi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40ad10
cmp eax, 0xea
jne 0x40adb2
push 1
push dword [ebp + 0x10]
mov ecx, ebx
inc edi
call fcn.00406cf0
mov esi, eax
test esi, esi
je 0x40aed9
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x28]
call fcn.004040e0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
shr eax, 3
not al
test al, 1
je 0x40ace0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push 0x465210
push 0x20019
mov byte [ebp - 4], 3
push dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0040a860
test al, al
je 0x40ad90
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push dword [eax]
push 0x465210
push 0
push esi
push 0
push dword [ebp - 0x20]
call fcn.0040af30
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test eax, eax
je 0x40ace0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
jmp 0x40ace0
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi]
jmp 0x40adbc
mov edi, dword [ebp - 0x18]
shr ecx, 1
xor esi, esi
not cl
test cl, 1
je 0x40ae3a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x30], 0
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push esi
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x40adfc
cmp eax, 0xea
jne 0x40ae3a
mov eax, dword [ebp + 0x10]
mov ecx, ebx
cmp word [eax], 0
je 0x40ae19
push 0
push eax
call fcn.00406cf0
mov ecx, eax
test ecx, ecx
je 0x40aed9
mov eax, dword [ebp - 0x1c]
inc esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x48]
push dword [edi]
push eax
push dword [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
push dword [ebp - 0x28]
call fcn.0040af30
jmp 0x40adc7
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40ae4f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x23c], 0
je 0x40aedd
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40aedd
test byte [ebx + 0x14], 1
je 0x40aeca
push dword [ebx + 0x18]
mov esi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.004077e0
test al, al
je 0x40aed9
mov eax, dword [ebp + 0x23c]
mov ecx, dword [ebp - 0x14]
dec eax
push eax
push edi
push esi
push ebx
call fcn.0040ab10
test al, al
je 0x40aed9
push 0
mov ecx, esi
call fcn.00408630
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x40aeca
lea ebx, [edi + 8]
mov edi, dword [esi + 4]
lea eax, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.00404da0
test al, al
jne 0x40aec1
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, edi
test edi, edi
jne 0x40aea7
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40aedd
mov edi, dword [ebp - 0x18]
jmp 0x40ae66
xor bl, bl
jmp 0x40aedf
mov bl, 1
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.004032b0
jmp 0x40aeef
xor bl, bl
lea ecx, [ebp - 0x48]
call fcn.0040c7e0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40af05
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.00422f50
lea esp, [ebp + 0x228]
pop ebp
ret 0x10