Function at 0x1041547
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov eax, dword [0x1075004]
mov ebx, 0x1075004
cmp eax, ebx
je 0x1041585
test byte [eax + 0x1c], 4
je 0x1041585
cmp byte [eax + 0x19], 5
jb 0x1041585
push 0x1002eb4
push 0x25
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x20019
push esi
push 0x1001768
push esi
push 0x1002ef0
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x10415ec
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041769
test byte [eax + 0x1c], 4
je 0x1041769
cmp byte [eax + 0x19], 2
jb 0x1041769
push dword [ebp - 4]
push 0x1002eb4
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1041769
push edi
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 0x1002ed4
push edi
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x104163f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041768
test byte [eax + 0x1c], 4
je 0x1041768
cmp byte [eax + 0x19], 2
jb 0x1041768
push dword [ebp - 4]
push 0x1002eb4
push 0x27
jmp 0x10416e3
cmp dword [ebp - 0x14], 3
jne 0x104173a
cmp dword [ebp - 0x10], 0
je 0x104173a
push dword [ebp - 0x10]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x10416a0
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041768
test byte [eax + 0x1c], 4
je 0x1041768
cmp byte [eax + 0x19], 2
jb 0x1041768
push 0x1002eb4
push 0x29
jmp 0x1041721
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
test eax, eax
je 0x10416f0
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041768
test byte [eax + 0x1c], 4
je 0x1041768
cmp byte [eax + 0x19], 2
jb 0x1041768
push dword [ebp - 4]
push 0x1002eb4
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
jmp 0x1041768
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x104172e
mov dword [ebp - 4], 0x53a
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041768
test byte [eax + 0x1c], 4
je 0x1041768
cmp byte [eax + 0x19], 2
jb 0x1041768
push 0x1002eb4
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1041768
and dword [ebp - 0xc], 0
mov dword [0x1077fc0], esi
jmp 0x1041768
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041761
test byte [eax + 0x1c], 4
je 0x1041761
cmp byte [eax + 0x19], 2
jb 0x1041761
push 0x1002eb4
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
mov dword [ebp - 4], 0x3f1
pop edi
xor esi, esi
cmp dword [ebp - 8], esi
je 0x1041779
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x10417c6
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x10417c6
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x10417c6
test byte [eax + 0x1c], 4
je 0x10417c6
cmp byte [eax + 0x19], 2
jb 0x10417c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x1075004]
push 0x1002eb4
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101463a
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret