Function at 0x410fff
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x244], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], ebx
cmp byte [ebp + 0x18], cl
jne 0x4111e2
xor eax, eax
mov dword [ebp - 0x234], ecx
mov word [ebp - 0x224], ax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x230], ecx
push eax
push edi
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x228], ecx
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorControl]
test eax, eax
je 0x4111d4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorOwner]
test eax, eax
je 0x4111d4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorGroup]
test eax, eax
je 0x4111d4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorDacl]
test eax, eax
je 0x4111d4
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x4111d4
push dword [ebp - 0x224]
lea eax, [ebp + 0xc]
push eax
call fcn.00410dc0
push dword [ebp - 0x228]
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x22c]
push dword [ebp - 0x230]
push dword [ebp - 0x234]
push edi
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x4111d7
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x238]
mov dword [ebp - 0x21c], ecx
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x238], ecx
push eax
push ecx
push ecx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4111f0
cmp eax, 5
jne 0x4111c9
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20001
call fcn.004109f9
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4111c9
xor ecx, ecx
lea eax, [ebp - 0x238]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x21c]
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
push dword [ebp - 0x214]
test eax, eax
je 0x4111ea
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 1
jmp 0x4112f6
mov edi, dword [ebp + 0xc]
mov dword [ebx], 1
jmp 0x411139
mov edi, dword [ebp + 0xc]
jmp 0x41113b
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 0
je 0x4112f6
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x41123b
cmp eax, 5
jne 0x4111c9
lea eax, [ebp - 0x214]
push eax
push 8
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4111c9
mov eax, dword [ebp - 0x214]
jmp 0x411243
mov eax, esi
mov dword [ebp - 0x214], eax
xor ebx, ebx
cmp dword [ebp - 0x21c], ebx
jbe 0x4112eb
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4112cc
lea eax, [ebp - 0x218]
push eax
push edi
push 0x2000000
call fcn.004109f9
push eax
push 0
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4112cc
mov ecx, dword [ebp - 0x244]
push eax
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edi
push dword [ebp - 0x218]
call fcn.00410fff
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x411309
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4112d8
mov eax, dword [ebp - 0x23c]
mov dword [eax], 1
mov eax, dword [ebp - 0x214]
inc ebx
cmp ebx, dword [ebp - 0x21c]
jb 0x411251
cmp eax, esi
je 0x4112f6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 0x14
cmp dword [ebp - 0x214], esi
je 0x41131d
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x220]
jmp 0x4112f8