Function at 0x410139
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x41e024]
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 0x41031c
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 0x41030e
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 0x41030e
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 0x41030e
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 0x41030e
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 0x41030e
push dword [ebp - 0x224]
lea eax, [ebp + 0xc]
push eax
call fcn.0040ff0c
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 0x410311
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 0x41032a
cmp eax, 5
jne 0x410303
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20001
call fcn.0040faad
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410303
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 0x410324
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 1
jmp 0x410430
mov edi, dword [ebp + 0xc]
mov dword [ebx], 1
jmp 0x410273
mov edi, dword [ebp + 0xc]
jmp 0x410275
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 0
je 0x410430
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x410375
cmp eax, 5
jne 0x410303
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 0x410303
mov eax, dword [ebp - 0x214]
jmp 0x41037d
mov eax, esi
mov dword [ebp - 0x214], eax
xor ebx, ebx
cmp dword [ebp - 0x21c], ebx
jbe 0x410425
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x410406
lea eax, [ebp - 0x218]
push eax
push edi
push 0x2000000
call fcn.0040faad
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 0x410406
mov ecx, dword [ebp - 0x244]
push eax
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edi
push dword [ebp - 0x218]
call fcn.00410139
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x410443
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410412
mov eax, dword [ebp - 0x23c]
mov dword [eax], 1
mov eax, dword [ebp - 0x214]
inc ebx
cmp ebx, dword [ebp - 0x21c]
jb 0x41038b
cmp eax, esi
je 0x410430
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.0041cc10
leave
ret 0x14
cmp dword [ebp - 0x214], esi
je 0x410457
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 0x410432