Function at 0x10108890
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10194532
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x5058
call fcn.1015dfc0
mov eax, dword [0x101f62b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x5049], dl
mov edi, ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x5020], 0
movq qword [ebp - 0x5028], xmm0
mov dword [ebp - 0x5028], 0
mov dword [ebp - 0x5024], 0
mov dword [ebp - 0x5020], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5064]
push 1
xor eax, eax
mov dword [ebp - 0x5054], 0
push 0x101ace08
mov dword [ebp - 0x5050], 7
mov word [ebp - 0x5064], ax
call fcn.10001d60
lea eax, [ebp - 0x5064]
mov byte [ebp - 4], 4
push eax
lea edx, [ebx + 8]
lea ecx, [ebp - 0x5028]
call fcn.1010f350
mov byte [ebp - 4], 3
add esp, 4
mov edx, dword [ebp - 0x5050]
cmp edx, 8
jb 0x101089aa
mov ecx, dword [ebp - 0x5064]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x101089a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f8f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov ecx, dword [ebp - 0x5024]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x5028]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x101089ff
mov eax, dword [ebp - 0x5024]
lea ecx, [ebx + 8]
push ecx
cmp eax, dword [ebp - 0x5020]
je 0x101089ed
mov ecx, eax
call fcn.10002700
add dword [ebp - 0x5024], 0x18
jmp 0x101089f9
push eax
lea ecx, [ebp - 0x5028]
call fcn.1000b320
mov esi, dword [ebp - 0x5028]
push str.HKEY_CLASSES_ROOT
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108a19
mov esi, SysReAllocString
jmp 0x10108abf
push str.HKEY_CURRENT_USER
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108a33
mov esi, SysReAllocString
jmp 0x10108abf
push str.HKEY_LOCAL_MACHINE
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108a4a
mov esi, reloc.OLEAUT32.dll_SysReAllocString
jmp 0x10108abf
push str.HKEY_USERS
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108a61
mov esi, SysStringLen
jmp 0x10108abf
push str.HKEY_CURRENT_CONFIG
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108a78
mov esi, VariantCopy
jmp 0x10108abf
push str.HKEY_PERFORMANCE_DATA
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108a8f
mov esi, SysStringLen
jmp 0x10108abf
push str.HKEY_PERFORMANCE_NLSTEXT
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108aa6
mov esi, 0x80000060
jmp 0x10108abf
push str.HKEY_PERFORMANCE_TEXT
mov ecx, esi
call fcn.1000be70
test al, al
je 0x10108e82
mov esi, 0x80000050
xor eax, eax
mov dword [ebp - 0x5034], 0
mov dword [ebp - 0x5030], 7
mov word [ebp - 0x5044], ax
mov byte [ebp - 4], 5
lea ecx, [ebx + 8]
push dword [ebp - 0x501c]
cmp dword [ebx + 0x1c], 8
mov edx, dword [ebx + 0x18]
cmovae ecx, dword [ebx + 8]
push 1
push 0x101ace08
push ecx
call fcn.10108fa0
add esp, 0x10
cmp eax, 0xffffffff
je 0x10108b83
lea edx, [eax + 1]
mov dword [ebp - 0x5054], 0
xor eax, eax
mov dword [ebp - 0x5050], 7
mov word [ebp - 0x5064], ax
mov eax, dword [ebx + 0x18]
cmp eax, edx
jb 0x10108f8a
sub eax, edx
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebx + 0x1c], 8
lea eax, [ebx + 8]
cmovae eax, dword [ebx + 8]
push ecx
lea ecx, [ebp - 0x5064]
lea eax, [eax + edx*2]
push eax
call fcn.10001d60
lea ecx, [ebp - 0x5044]
call fcn.10001d00
movups xmm0, xmmword [ebp - 0x5064]
movups xmmword [ebp - 0x5044], xmm0
movq xmm0, qword [ebp - 0x5054]
movq qword [ebp - 0x5034], xmm0
cmp byte [ebp - 0x5049], 0
lea ecx, [ebp - 0x5048]
lea eax, [ebp - 0x5044]
push ecx
je 0x10108ba0
push 0x20019
jmp 0x10108ba5
push 0x20119
cmp dword [ebp - 0x5030], 8
push 0
cmovae eax, dword [ebp - 0x5044]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10108c3b
mov esi, dword [0x101fc274]
test esi, esi
je 0x10108c00
push eax
push str.getRegistryValue:_RegOpenKeyExW_failed_with_error__ld
push 0x101ace0c
push 0x101ace0c
push str.OSUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
mov byte [ebp - 0x5049], 0
jmp 0x10108e23
mov ecx, dword [0x101fc278]
test ecx, ecx
je 0x10108c2f
mov esi, dword [ecx]
push eax
push str.getRegistryValue:_RegOpenKeyExW_failed_with_error__ld
push str.OSUtils
mov esi, dword [esi + 0x34]
push 0x101ace0c
push 0x28
push ecx
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x18
mov byte [ebp - 0x5049], 0
jmp 0x10108e23
push str.REG_DWORD
lea ecx, [ebx + 0x38]
mov byte [ebp - 0x5049], 0
call fcn.1000be70
lea ecx, [ebp - 0x501c]
test al, al
push ecx
lea eax, [ebx + 0x20]
je 0x10108cb8
cmp dword [ebx + 0x34], 8
lea ecx, [ebp - 0x502c]
push ecx
cmovae eax, dword [ebx + 0x20]
push 0
push 0
push eax
push dword [ebp - 0x5048]
mov dword [ebp - 0x501c], 4
mov dword [ebp - 0x502c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10108d18
push eax
push dword [ebp - 0x502c]
mov ecx, edi
call fcn.10101660
add esp, 8
mov byte [ebp - 0x5049], 1
jmp 0x10108d7b
cmp dword [ebx + 0x34], 8
lea ecx, [ebp - 0x5018]
push ecx
cmovae eax, dword [ebx + 0x20]
push 0
push 0
push eax
push dword [ebp - 0x5048]
mov dword [ebp - 0x501c], 0x5000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x10108d18
lea ecx, [ebp - 0x5018]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10108cf1
sub ecx, edx
lea eax, [ebp - 0x5018]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.10001d60
mov byte [ebp - 0x5049], 1
jmp 0x10108d7b
mov esi, dword [0x101fc274]
test esi, esi
je 0x10108d4d
push ecx
push str.getRegistryValue:_RegQueryValueExW_failed_with_error__ld
push 0x101ace0c
push 0x101ace0c
push str.OSUtils
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x1019a4f8]
call esi
add esp, 0x1c
jmp 0x10108d7b
mov eax, dword [0x101fc278]
test eax, eax
je 0x10108d7b
mov esi, dword [eax]
push ecx
push str.getRegistryValue:_RegQueryValueExW_failed_with_error__ld
push str.OSUtils
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x101ace0c
push 0x28
push eax
call dword [0x1019a4f8]
call esi
add esp, 0x18
push dword [ebp - 0x5048]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x101fc274], 0
je 0x10108dd8
cmp dword [edi + 0x14], 8
jb 0x10108d98
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x101fc274]
mov ecx, esi
push eax
movzx eax, byte [ebp - 0x5049]
push edi
push eax
push str.getRegistryValue:_Status:_d_Value:_s_Error:_d
push 0x101ace0c
push 0x101ace0c
push str.OSUtils
push str.OOBEUtils
push 0xa
call dword [0x1019a4f8]
call esi
add esp, 0x24
jmp 0x10108e23
mov esi, dword [0x101fc278]
test esi, esi
je 0x10108e23
cmp dword [edi + 0x14], 8
jb 0x10108dea
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
movzx eax, byte [ebp - 0x5049]
push edi
push eax
push str.getRegistryValue:_Status:_d_Value:_s_Error:_d
push str.OSUtils
push 0x101ace0c
push 0xa
push dword [0x101fc278]
call dword [0x1019a4f8]
call esi
add esp, 0x20
mov edx, dword [ebp - 0x5030]
cmp edx, 8
jb 0x10108e63
mov ecx, dword [ebp - 0x5044]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10108e59
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f8f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
xor eax, eax
mov dword [ebp - 0x5034], 0
mov dword [ebp - 0x5030], 7
mov word [ebp - 0x5044], ax
jmp 0x10108e89
mov byte [ebp - 0x5049], 0
lea ecx, [ebp - 0x5028]
call fcn.1000ad70
mov edx, dword [ebx + 0x1c]
cmp edx, 8
jb 0x10108ece
mov ecx, dword [ebx + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10108ec4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f8f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp edx, 8
jb 0x10108f1c
mov ecx, dword [ebx + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10108f12
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f8f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov edx, dword [ebx + 0x4c]
xor eax, eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 7
mov word [ebx + 0x20], ax
cmp edx, 8
jb 0x10108f66
mov ecx, dword [ebx + 0x38]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10108f5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10108f8f
push edx
push ecx
call fcn.1015cbd5
add esp, 8
mov al, byte [ebp - 0x5049]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1015c875
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1000b080
call fcn.101686f5
int3