Function at 0x10004960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001cfb7
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0xc064
call fcn.1000fcf0
mov eax, dword [0x10025814]
xor eax, esp
mov dword [esp + 0xc060], eax
push ebx
push esi
push edi
mov eax, dword [0x10025814]
xor eax, esp
push eax
lea eax, [esp + 0xc078]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0xc080], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
cmp dword [esi + 0x54], 8
mov byte [esp + 0xc080], 1
jb 0x100049d3
mov eax, dword [esi + 0x40]
jmp 0x100049d6
lea eax, [esi + 0x40]
push eax
lea ecx, [esp + 0x18]
call fcn.10003620
mov edx, dword [esi + 0x20]
mov byte [esp + 0xc080], 2
cmp edx, ebx
jne 0x100049f3
xor eax, eax
jmp 0x10004a0f
mov eax, edx
lea edi, [eax + 2]
jmp 0x10004a00
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10004a00
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.10002440
push 1
push 0x1001e44c
lea ecx, [esp + 0x1c]
call fcn.10002440
mov edx, dword [esi + 0x24]
cmp edx, ebx
jne 0x10004a35
xor eax, eax
jmp 0x10004a4f
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10004a40
sub eax, edi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.10002440
mov eax, dword [esi + 0x68]
sub eax, dword [esi + 0x64]
lea edi, [esi + 0x58]
mov dword [esp + 0x24], edi
test eax, 0xfffffffc
je 0x10004aac
mov eax, dword [edi + 0x10]
mov dword [esp + 0x20], eax
cmp dword [edi + 0xc], eax
jbe 0x10004a7f
call fcn.1000f6aa
mov ebx, dword [edi]
mov edi, dword [edi + 0xc]
mov ecx, dword [esp + 0x24]
cmp edi, dword [ecx + 0x10]
jbe 0x10004a96
call fcn.1000f6aa
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
push edx
push ebx
push edi
push eax
lea eax, [esp + 0x64]
push eax
call fcn.10003a60
xor ebx, ebx
mov ecx, dword [esi + 0x80]
sub ecx, dword [esi + 0x7c]
add esi, 0x70
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], esi
je 0x10004b09
mov ebx, dword [esi + 0x10]
cmp dword [esi + 0xc], ebx
jbe 0x10004adc
call fcn.1000f6aa
mov edi, dword [esi]
mov esi, dword [esi + 0xc]
mov ecx, dword [esp + 0x18]
cmp esi, dword [ecx + 0x10]
jbe 0x10004af3
call fcn.1000f6aa
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
push ebx
push edi
push esi
push eax
lea edx, [esp + 0x64]
push edx
call fcn.10003c50
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push ecx
push VariantInit
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10004cc1
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
jmp 0x10004b44
xor ebx, ebx
mov edi, 0x3fff
push edi
lea eax, [esp + 0x4070]
push ebx
push eax
call fcn.1000f7e0
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x34]
push ebx
push ebx
lea eax, [esp + 0x60]
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x4080]
push ecx
push edx
push eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
mov dword [esp + 0x54], ebx
test ebx, ebx
jne 0x10004c9c
lea ecx, [esp + 0x406c]
push ecx
lea ecx, [esp + 0x24]
call fcn.10003620
lea ecx, [esp + 0x38]
mov byte [esp + 0xc080], 3
call fcn.100036d0
xor edi, edi
mov byte [esp + 0xc080], 4
cmp dword [esp + 0x28], edi
jbe 0x10004c2e
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
test edx, edx
jne 0x10004bdc
xor ecx, ecx
jmp 0x10004be2
mov ecx, dword [esp + 0x4c]
sub ecx, edx
mov ebx, eax
sub ebx, edx
cmp ebx, ecx
jae 0x10004bf7
mov dl, byte [esp + edi + 0x6c]
mov byte [eax], dl
inc eax
mov dword [esp + 0x48], eax
jmp 0x10004c23
mov esi, eax
cmp edx, eax
jbe 0x10004c02
call fcn.1000f6aa
mov eax, dword [esp + 0x38]
lea ecx, [esp + edi + 0x6c]
push ecx
push esi
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x48]
call fcn.10003730
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x18]
inc edi
cmp edi, dword [esp + 0x28]
jb 0x10004bd0
mov ebx, dword [esp + 0x54]
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x20]
push eax
call fcn.100043b0
lea ecx, [esp + 0x38]
push ecx
mov ecx, esi
call fcn.100048c0
mov eax, dword [esp + 0x44]
xor edi, edi
cmp eax, edi
je 0x10004c5b
push eax
call fcn.1000f3cb
add esp, 4
mov edx, dword [esp + 0x38]
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
call fcn.1000f3cb
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0xc080], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004c9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc dword [esp + 0x2c]
test ebx, ebx
je 0x10004b42
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10004cbf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], 0
xor ebx, ebx
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34], ebx
mov byte [esp + 0xc080], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10004ced
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10004cfc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc078]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc060]
xor ecx, esp
call fcn.1000fcdf
mov esp, ebp
pop ebp
ret