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

Disassembly:
push ebp
lea ebp, [esp - 0x228]
sub esp, 0x228
push 0xffffffffffffffff
push 0x4427f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x467fd4]
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.0040ca30
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 0x40ad03
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], 0
cmp esi, 0x80000004
je 0x40ad7f
cmp esi, 0x80000050
je 0x40ad7f
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 0x40ad82
push 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
push eax
call fcn.00405aa0
test al, al
jne 0x40ad82
or dword [ebx + 0x14], 0x200
lea ecx, [ebp - 0x40]
call fcn.0040d1e0
mov esi, eax
push esi
call fcn.0040be10
add esp, 4
mov edi, eax
mov ecx, ebx
push edi
call fcn.0040a660
test al, al
je 0x40b03d
push edi
push esi
push dword [ebx + 0x30]
call fcn.004243e0
mov dword [ebx + 0x20], 1
add esp, 0xc
mov bl, 1
jmp 0x40b03f
mov dword [ebp - 0x28], esi
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebx]
call fcn.00408390
push eax
mov eax, dword [esi + 0x14]
mov ecx, ebx
call eax
test al, al
je 0x40b03d
or dword [ebx + 0x14], 1
lea ecx, [ebx + 0x28]
xor edi, edi
call fcn.00404ef0
test al, al
je 0x40adf4
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 0x40add2
cmp eax, 0xea
jne 0x40adf4
lea ecx, [ebp - 0x20]
call fcn.00403930
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404030
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebx + 0x28]
call fcn.004038e0
push 0
push 0x108
push 2
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp]
call fcn.004031c0
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 0x40af09
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 0x40ae60
cmp eax, 0xea
jne 0x40af02
push 1
push dword [ebp + 0x10]
mov ecx, ebx
inc edi
call fcn.00406db0
mov esi, eax
test esi, esi
je 0x40b029
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [esi + 0x28]
call fcn.00404030
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx]
shr eax, 3
not al
test al, 1
je 0x40ae30
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x20]
push 0x466210
push 0x20019
mov byte [ebp - 4], 3
push dword [eax + 0x10]
mov eax, dword [ebp - 0x14]
push dword [eax]
call fcn.0040a9b0
test al, al
je 0x40aee0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
push dword [eax]
push 0x466210
push 0
push esi
push 0
push dword [ebp - 0x20]
call fcn.0040b080
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 2
test eax, eax
je 0x40ae30
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x20], 0
jmp 0x40ae30
mov edi, dword [ebp - 0x18]
mov ecx, dword [edi]
jmp 0x40af0c
mov edi, dword [ebp - 0x18]
shr ecx, 1
xor esi, esi
not cl
test cl, 1
je 0x40af8a
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 0x40af4c
cmp eax, 0xea
jne 0x40af8a
mov eax, dword [ebp + 0x10]
mov ecx, ebx
cmp word [eax], 0
je 0x40af69
push 0
push eax
call fcn.00406db0
mov ecx, eax
test ecx, ecx
je 0x40b029
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.0040b080
jmp 0x40af17
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40af9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x28], 0
cmp dword [ebp + 0x23c], 0
je 0x40b02d
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40b02d
test byte [ebx + 0x14], 1
je 0x40b01a
push dword [ebx + 0x18]
mov esi, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00407ad0
test al, al
je 0x40b029
mov eax, dword [ebp + 0x23c]
mov ecx, dword [ebp - 0x14]
dec eax
push eax
push edi
push esi
push ebx
call fcn.0040ac60
test al, al
je 0x40b029
push 0
mov ecx, esi
call fcn.004088e0
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x40b01a
lea ebx, [edi + 8]
mov edi, dword [esi + 4]
lea eax, [esi + 0x28]
push eax
mov ecx, ebx
call fcn.00404cf0
test al, al
jne 0x40b011
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, edi
test edi, edi
jne 0x40aff7
mov ebx, dword [ebp - 0x10]
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40b02d
mov edi, dword [ebp - 0x18]
jmp 0x40afb6
xor bl, bl
jmp 0x40b02f
mov bl, 1
lea ecx, [ebp]
mov byte [ebp - 4], 7
call fcn.00403250
jmp 0x40b03f
xor bl, bl
lea ecx, [ebp - 0x48]
call fcn.0040ca90
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x40b055
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.00422c85
lea esp, [ebp + 0x228]
pop ebp
ret 0x10