Function at 0x4100a9
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 0x41028c
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 0x41027e
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 0x41027e
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 0x41027e
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 0x41027e
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 0x41027e
push dword [ebp - 0x224]
lea eax, [ebp + 0xc]
push eax
call fcn.0040fe7c
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 0x410281
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 0x41029a
cmp eax, 5
jne 0x410273
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20001
call fcn.0040fa1d
push eax
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x410273
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 0x410294
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebx], 1
jmp 0x4103a0
mov edi, dword [ebp + 0xc]
mov dword [ebx], 1
jmp 0x4101e3
mov edi, dword [ebp + 0xc]
jmp 0x4101e5
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x21c], 0
je 0x4103a0
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4102e5
cmp eax, 5
jne 0x410273
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 0x410273
mov eax, dword [ebp - 0x214]
jmp 0x4102ed
mov eax, esi
mov dword [ebp - 0x214], eax
xor ebx, ebx
cmp dword [ebp - 0x21c], ebx
jbe 0x410395
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x410376
lea eax, [ebp - 0x218]
push eax
push edi
push 0x2000000
call fcn.0040fa1d
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 0x410376
mov ecx, dword [ebp - 0x244]
push eax
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push edi
push dword [ebp - 0x218]
call fcn.0049cf27
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x4103b3
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410382
mov eax, dword [ebp - 0x23c]
mov dword [eax], 1
mov eax, dword [ebp - 0x214]
inc ebx
cmp ebx, dword [ebp - 0x21c]
jb 0x4102fb
cmp eax, esi
je 0x4103a0
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.0041ca70
leave
ret 0x14
cmp dword [ebp - 0x214], esi
je 0x4103c7
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 0x4103a2