Function at 0x10023060
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov edi, edx
mov esi, ecx
lea ebx, [ebp - 0x1c]
lea eax, [0x10692fff]
mov dword [ebp - 0x18], 0x10692fd3
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.10018ee0
add esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], edi
add eax, edi
mov dword [ebp - 0x14], eax
mov word [ebp - 0x10], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.10018ee0
add esp, 8
mov edi, dword [ebp - 0x58]
call fcn.1003bd60
mov dword [ebp - 0x1c], eax
push ebx
push 0x20019
push 0
push edi
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x10023114
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100230fe
add eax, eax
push 2
push eax
push dword [ebp - 0x4c]
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10023349
add eax, eax
push 2
push eax
push edi
jmp 0x10023341
mov eax, dword [0x106b6680]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0x800
mov ebx, dword [ebp - 0x1c]
movzx eax, byte [eax]
push 1
push 0x800
call fcn.1000d070
add esp, 8
test eax, eax
je 0x10023365
mov esi, dword [ebp - 0x4c]
mov dword [ebp - 0x44], 0x800
mov edi, eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0
push ecx
push edi
push eax
push 0
push esi
mov dword [ebp - 0x30], ebx
push ebx
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x1002323d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.10047f90
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 1
jne 0x100232ac
lea ebx, [ebp - 0x28]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x28], 0x800700ea
mov dword [ebp - 0x24], edx
test ecx, ecx
mov dword [ebp - 0x3c], eax
jne 0x10023226
test edx, edx
je 0x100231d7
lea eax, [ebp - 0x24]
push eax
call fcn.10047d70
add esp, 4
mov edi, dword [ebp - 0x40]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
push edi
push ebx
push 0
push esi
push dword [ebp - 0x30]
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x1002323d
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
push ecx
call fcn.10047f90
add esp, 4
cmp eax, 0x800700ea
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1c], 1
je 0x100231b0
jmp 0x100232ac
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.10023d30
add esp, 0xc
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x100231cb
jmp 0x100231d7
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 0
mov ebx, ecx
mov eax, ecx
and ebx, 0xfffffffe
shr eax, 2
add ebx, edi
bt ecx, 1
adc eax, 0
jne 0x10023351
lea eax, [ebp - 0x28]
mov word [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.100101a0
add esp, 8
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
xor edx, edx
test ebx, ebx
je 0x100232f6
nop dword [eax]
cmp byte [ecx + ebx - 1], 0
jne 0x100232f4
dec ebx
jne 0x100232a0
jmp 0x100232f6
mov eax, dword [ebp - 0x34]
test edx, edx
mov dword [eax], 0x80000000
je 0x100232c5
lea eax, [ebp - 0x14]
push eax
call fcn.10047d70
add esp, 4
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp - 0x30]
test eax, eax
je 0x100232db
push 1
push eax
push edi
call fcn.1000d080
add esp, 0xc
push esi
call sub.advapi32.dll_RegCloseKey
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x50]
test eax, eax
jne 0x100230ee
jmp 0x100230fe
mov edx, ebx
mov ebx, dword [ebp - 0x34]
mov dword [ebx], eax
mov eax, dword [ebp - 0x44]
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov ebx, dword [ebp - 0x38]
test eax, eax
je 0x10023317
push 1
push eax
push edi
call fcn.1000d080
add esp, 0xc
push dword [ebp - 0x30]
call sub.advapi32.dll_RegCloseKey
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x10023334
add eax, eax
push 2
push eax
push esi
call fcn.1000d080
add esp, 0xc
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x10023349
add eax, eax
push 2
push eax
push ebx
call fcn.1000d080
add esp, 0xc
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.10023d30
add esp, 0xc
jmp 0x1002326e
push 0x800
push 1
call fcn.100d0890
nop
nop
nop
nop
nop
nop
nop
nop