Function at 0x10004f40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx - 2]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x28], eax
jmp 0x10004f9a
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov dword [edx + 0x20], eax
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
je 0x10004fc1
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx]
jne 0x10004fc1
mov dword [ebp - 0xc], 0
jmp 0x1000525f
lea ecx, [ebp - 0x238]
push ecx
call 0x10000000
add esp, 4
mov dword [ebp - 0x34], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10005012
cmp dword [ebp - 0xc], 0x103
jne 0x1000500d
mov dword [ebp - 0xc], 0
jmp 0x1000525f
lea eax, [ebp - 0x20]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10005037
jmp 0x10004f91
mov dword [ebp - 0x18], 0x20
mov eax, dword [ebp - 4]
sub eax, 0x20
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x100050ba
mov dword [ebp - 0x38], 4
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 4
push edx
push 0
push 0
push 0x10009838
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x30], 0
je 0x1000509b
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x30]
je 0x1000509b
mov eax, dword [ebp - 4]
add eax, 0x20
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10004f91
mov edx, dword [ebp - 0x10]
mov dword [edx], 3
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 1
jmp 0x100050c1
mov dword [ebp - 0xc], 0xea
mov edx, dword [ebp - 0x18]
add edx, 6
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
sub eax, 6
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x1000512e
mov ecx, dword [ebp - 8]
sub ecx, 6
mov dword [ebp - 8], ecx
mov edx, 2
imul eax, edx, 0
mov ecx, 2
imul edx, ecx, 0
mov ecx, dword [ebp - 8]
mov ax, word [ebp + eax - 0x238]
mov word [ecx + edx], ax
mov ecx, 2
shl ecx, 0
mov edx, 0x3a
mov eax, dword [ebp - 8]
mov word [eax + ecx], dx
mov ecx, 2
shl ecx, 1
xor edx, edx
mov eax, dword [ebp - 8]
mov word [eax + ecx], dx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x10], edx
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
push 0x10009858
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10004ec0
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100051ad
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x10005193
mov ecx, dword [ebp - 0x14]
shr ecx, 1
shl ecx, 1
mov edx, dword [ebp - 8]
sub edx, ecx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [edx + 0x1c], eax
jmp 0x1000519a
mov dword [ebp - 0xc], 0xea
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
push edx
push 0x10009874
mov eax, dword [ebp - 0x20]
push eax
call fcn.10004ec0
add esp, 0xc
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x1000522c
mov ecx, dword [ebp - 0x18]
add ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jle 0x10005212
mov eax, dword [ebp - 0x14]
shr eax, 1
shl eax, 1
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x14], edx
jmp 0x10005219
mov dword [ebp - 0xc], 0xea
mov eax, dword [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0
cmp dword [ebp - 4], 0
jge 0x10005248
jmp 0x1000525f
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
mov dword [ebp - 0x10], ecx
jmp 0x10004f91
cmp dword [ebp - 0x24], 0
jne 0x1000526c
mov dword [ebp - 0xc], 0x103
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x24]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0xea
je 0x1000528d
cmp dword [ebp - 0xc], 0x103
je 0x1000528d
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xea
jne 0x100052a3
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
add edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret