Function at 0x1041957
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 0x1041995
test byte [eax + 0x1c], 4
je 0x1041995
cmp byte [eax + 0x19], 5
jb 0x1041995
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 reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x10419fc
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041b79
test byte [eax + 0x1c], 4
je 0x1041b79
cmp byte [eax + 0x19], 2
jb 0x1041b79
push dword [ebp - 4]
push 0x1002eb4
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x1041b79
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 0x1041a4f
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041b78
test byte [eax + 0x1c], 4
je 0x1041b78
cmp byte [eax + 0x19], 2
jb 0x1041b78
push dword [ebp - 4]
push 0x1002eb4
push 0x27
jmp 0x1041af3
cmp dword [ebp - 0x14], 3
jne 0x1041b4a
cmp dword [ebp - 0x10], 0
je 0x1041b4a
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 0x1041ab0
mov dword [ebp - 4], 8
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041b78
test byte [eax + 0x1c], 4
je 0x1041b78
cmp byte [eax + 0x19], 2
jb 0x1041b78
push 0x1002eb4
push 0x29
jmp 0x1041b31
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 0x1041b00
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041b78
test byte [eax + 0x1c], 4
je 0x1041b78
cmp byte [eax + 0x19], 2
jb 0x1041b78
push dword [ebp - 4]
push 0x1002eb4
push 0x2a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0102ca9d
jmp 0x1041b78
mov esi, dword [ebp - 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSecurityDescriptor]
test eax, eax
jne 0x1041b3e
mov dword [ebp - 4], 0x53a
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041b78
test byte [eax + 0x1c], 4
je 0x1041b78
cmp byte [eax + 0x19], 2
jb 0x1041b78
push 0x1002eb4
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010090c5
jmp 0x1041b78
and dword [ebp - 0xc], 0
mov dword [0x1077fc0], esi
jmp 0x1041b78
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041b71
test byte [eax + 0x1c], 4
je 0x1041b71
cmp byte [eax + 0x19], 2
jb 0x1041b71
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 0x1041b89
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], esi
je 0x1041bd6
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 0x1041bd6
mov eax, dword [0x1075004]
cmp eax, ebx
je 0x1041bd6
test byte [eax + 0x1c], 4
je 0x1041bd6
cmp byte [eax + 0x19], 2
jb 0x1041bd6
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.0102ca9d
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret