Function at 0x10023500
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009df16
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x206
mov esi, ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x9a]
push ebx
push edx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], ecx
mov word [esp + 0xa0], bx
call fcn.1007aac0
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x94]
push ecx
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esi]
push ebx
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0xbc]
push eax
push ecx
mov dword [esp + 0x70], 0x104
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
je 0x100235ce
mov dword [esi + 4], edi
cmp edi, 5
jne 0x100235da
mov al, 1
jmp 0x10023862
cmp edi, ebx
je 0x100235e8
mov dword [esi + 4], edi
xor al, al
jmp 0x10023862
mov eax, dword [esp + 0x24]
add dword [esp + 0x20], 1
add eax, 1
xor ecx, ecx
mov dword [esp + 0x24], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100788a2
mov esi, eax
mov eax, dword [esp + 0x24]
xor ecx, ecx
add esp, 4
mov dword [esp + 0x38], eax
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x34], esi
neg ecx
or ecx, eax
push ecx
call fcn.100788a2
add esp, 4
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x10023727
mov eax, dword [esp + 0x2c]
call fcn.10006800
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
push eax
call fcn.10023890
cmp dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
jbe 0x10023727
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x2c]
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
mov eax, dword [edx]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x28]
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
xor eax, eax
cmp edi, eax
jne 0x10023712
mov dword [esp + 0x68], eax
mov word [esp + 0x58], ax
mov eax, esi
mov dword [esp + 0x6c], 7
lea edx, [eax + 2]
jmp 0x100236c0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100236c0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x5c]
call fcn.10004560
lea ecx, [esp + 0x54]
mov dword [esp + 0x2b0], 0
push ecx
mov ecx, dword [esp + 0x30]
call fcn.10006750
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x6c], 8
jb 0x10023712
mov edx, dword [esp + 0x58]
push edx
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jb 0x1002366f
cmp dword [esp + 0x1c], 0
je 0x1002383e
mov esi, dword [esp + 0x3c]
mov eax, dword [esi + 8]
cmp dword [esi + 4], eax
mov dword [esp + 0x2c], eax
jbe 0x10023747
call fcn.10079637
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
jbe 0x10023754
call fcn.10079637
mov eax, dword [esp + 0x2c]
push eax
push esi
push edi
push esi
lea ecx, [esp + 0x3c]
push ecx
call fcn.10006ab0
mov edx, dword [esp + 0x1c]
push edx
mov ecx, esi
call fcn.10023890
xor edi, edi
cmp dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
jbe 0x1002383a
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
xor esi, esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x3c]
push ebx
mov word [ebx], si
mov ecx, dword [eax]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp edi, esi
jne 0x10023825
mov eax, ebx
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], esi
mov word [esp + 0x78], si
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x100237d0
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x7c]
call fcn.10004560
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x74]
push edx
mov dword [esp + 0x2b4], 1
call fcn.10006750
mov dword [esp + 0x2b0], 0xffffffff
cmp dword [esp + 0x8c], 8
jb 0x10023825
mov eax, dword [esp + 0x78]
push eax
call fcn.10079508
add esp, 4
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jb 0x10023782
mov esi, dword [esp + 0x34]
push esi
call fcn.10079647
add esp, 4
push ebx
call fcn.10079647
add esp, 4
test edi, edi
je 0x1002385b
mov ecx, dword [esp + 0x28]
mov dword [ecx + 4], edi
xor eax, eax
test edi, edi
sete al
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.1007a1bc
mov esp, ebp
pop ebp
ret 8