Function at 0x1001b540
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 0x100dd166
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x668
mov eax, dword [0x1010a080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x670], eax
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x674], ecx
lea ecx, [ebp - 0x660]
push ecx
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push eax
mov dword [ebp - 0x668], edx
mov dword [ebp - 0x660], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001ba39
push 8
mov dword [ebp - 0x650], eax
mov dword [ebp - 0x64c], eax
mov dword [ebp - 0x648], eax
mov dword [ebp - 0x644], eax
mov dword [ebp - 0x640], eax
call fcn.100daa1b
lea ecx, [ebp - 0x650]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x650], eax
mov dword [eax], ecx
mov dword [ebp - 4], 0
xor edi, edi
nop dword [eax]
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x654]
mov dword [ebp - 0x654], 0x200
push ecx
lea ecx, [ebp - 0x620]
mov eax, edi
push ecx
push eax
push dword [ebp - 0x660]
inc edi
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1001b720
mov dword [ebp - 0x628], eax
xorps xmm0, xmm0
mov dword [ebp - 0x624], eax
lea eax, [ebp - 0x620]
movups xmmword [ebp - 0x638], xmm0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001b667
sub eax, edx
lea ecx, [ebp - 0x638]
sar eax, 1
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.10010c60
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x648]
lea eax, [edx + 1]
cmp ecx, eax
ja 0x1001b6b8
push ecx
lea ecx, [ebp - 0x650]
call fcn.10011400
mov edx, dword [ebp - 0x640]
mov ecx, dword [ebp - 0x648]
mov eax, dword [ebp - 0x644]
dec ecx
and eax, ecx
mov dword [ebp - 0x644], eax
add eax, edx
and ecx, eax
mov eax, dword [ebp - 0x64c]
cmp dword [eax + ecx*4], 0
lea esi, [ecx*4]
jne 0x1001b6f7
push 0x18
call fcn.100daa1b
mov ecx, dword [ebp - 0x64c]
add esp, 4
mov dword [esi + ecx], eax
mov eax, dword [ebp - 0x64c]
mov eax, dword [esi + eax]
movups xmm0, xmmword [ebp - 0x638]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x628]
movq qword [eax + 0x10], xmm0
inc dword [ebp - 0x640]
mov byte [ebp - 4], 0
jmp 0x1001b610
cmp eax, 0x103
jne 0x1001b610
mov edx, dword [ebp - 0x644]
mov eax, dword [ebp - 0x640]
add eax, edx
mov dword [ebp - 0x654], edx
mov dword [ebp - 0x678], eax
cmp edx, eax
je 0x1001ba07
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov eax, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov dword [ebp - 0x65c], esi
mov dword [ebp - 0x664], eax
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [ebp - 0x648]
mov eax, dword [ebp - 0x64c]
dec ecx
and ecx, edx
mov dword [ebp - 0x66c], 0x104
mov edi, dword [eax + ecx*4]
mov eax, edi
mov dword [ebp - 0x658], edi
cmp dword [edi + 0x14], 7
jbe 0x1001b79c
mov eax, dword [edi]
lea ecx, [ebp - 0x66c]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0
push 2
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push dword [ebp - 0x670]
call esi
test eax, eax
jne 0x1001b9ee
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b7d0
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
lea ecx, [ebp - 0x220]
add ecx, eax
test eax, eax
je 0x1001b807
nop
cmp word [ecx], 0x2e
je 0x1001b8e3
sub ecx, 2
lea eax, [ebp - 0x220]
cmp ecx, eax
jne 0x1001b7f0
lea esi, [ebp - 0x220]
push 0x10103ecc
push esi
call dword [ebp - 0x664]
add esp, 8
test eax, eax
je 0x1001b837
push 0x10103ed4
push esi
call dword [ebp - 0x664]
add esp, 8
test eax, eax
jne 0x1001b9e8
mov esi, dword [ebp - 0x668]
mov eax, dword [esi + 0x10]
inc eax
cmp dword [esi + 8], eax
ja 0x1001b84e
push ecx
mov ecx, esi
call fcn.10011400
mov edx, dword [esi + 8]
dec edx
mov eax, edx
and eax, dword [esi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0x10]
add ecx, eax
mov eax, dword [esi + 4]
and edx, ecx
lea ecx, [edx*4]
cmp dword [ecx + eax], 0
mov dword [ebp - 0x63c], ecx
jne 0x1001b88f
push 0x18
call fcn.100daa1b
mov ecx, dword [esi + 4]
add esp, 4
mov edx, dword [ebp - 0x63c]
mov dword [edx + ecx], eax
mov ecx, edx
mov eax, dword [esi + 4]
xorps xmm0, xmm0
mov esi, dword [ecx + eax]
mov eax, dword [ebp - 0x658]
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
cmp dword [eax + 0x14], 7
mov edi, dword [edi + 0x10]
jbe 0x1001b8c0
mov eax, dword [eax]
mov dword [ebp - 0x658], eax
cmp edi, 0x7ffffffe
ja 0x1001ba5d
mov dword [esi + 0x14], 7
cmp edi, 7
ja 0x1001b8eb
mov dword [esi + 0x10], edi
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
jmp 0x1001b93f
lea esi, [ecx + 2]
jmp 0x1001b80d
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x1001b8fe
mov eax, bind
jmp 0x1001b909
cmp eax, 0xa
mov ecx, 0xa
cmovb eax, ecx
lea edx, [ebp - 0x63c]
mov dword [ebp - 0x63c], eax
call fcn.1000b280
mov ecx, dword [ebp - 0x63c]
mov dword [esi + 0x14], ecx
lea ecx, [edi*2 + 2]
push ecx
push dword [ebp - 0x658]
mov dword [esi], eax
push eax
mov dword [esi + 0x10], edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x668]
lea ecx, [ebp - 0x220]
xorps xmm0, xmm0
mov dword [ebp - 0x628], 0
movups xmmword [ebp - 0x638], xmm0
mov dword [ebp - 0x624], 0
inc dword [edx + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001b970
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x638]
call fcn.10010c60
mov ecx, dword [ebp - 0x674]
lea eax, [ebp - 0x638]
push eax
mov byte [ebp - 4], 2
call fcn.1001d350
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x624]
cmp ecx, 7
jbe 0x1001b9e8
mov edx, dword [ebp - 0x638]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x1001b9de
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ba57
push ecx
push edx
call fcn.100dad65
add esp, 8
mov esi, dword [ebp - 0x65c]
mov edx, dword [ebp - 0x654]
inc edx
mov dword [ebp - 0x654], edx
cmp edx, dword [ebp - 0x678]
jne 0x1001b770
push dword [ebp - 0x660]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x650]
call fcn.1001d560
mov eax, dword [ebp - 0x650]
push 8
push eax
mov dword [ebp - 0x650], 0
call fcn.100dad65
add esp, 8
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.100daa0d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.10002a40
int3