Function at 0x10005040
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 0x100aaf70
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x258
mov eax, dword [0x100d0008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x260], edx
mov esi, ecx
mov dword [ebp - 0x21c], esi
lea eax, [ebp - 0x250]
mov dword [ebp - 0x21c], esi
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x100050e3
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
jmp 0x100052dd
mov ecx, dword [edi + 0x10]
mov eax, 0x7fffffff
sub eax, ecx
mov dword [ebp - 0x21c], 0x200
mov dword [ebp - 0x258], ecx
cmp eax, 0xb
jb 0x1000537a
cmp dword [edi + 0x14], 0x10
jb 0x10005114
mov edi, dword [edi]
mov dword [ebp - 0x260], edi
lea edx, [ecx + 0xb]
mov dword [ebp - 0x224], 0
mov edi, 0xf
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x25c], edx
xorps xmm0, xmm0
lea eax, [ebp - 0x234]
mov dword [ebp - 0x254], eax
movups xmmword [ebp - 0x234], xmm0
cmp edx, edi
jbe 0x100051e2
mov edi, edx
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x10005198
mov ecx, 0x80000000
mov edi, 0x7fffffff
add ecx, 0x23
push ecx
call fcn.100a9813
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x10005374
mov edx, dword [ebp - 0x25c]
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
mov ecx, dword [ebp - 0x258]
jmp 0x100051d6
mov eax, 0x16
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x100051b9
lea ecx, [eax + 0x23]
cmp ecx, eax
jbe 0x1000537f
jmp 0x1000516e
test eax, eax
je 0x100051d4
push eax
call fcn.100a9813
mov ecx, dword [ebp - 0x258]
add esp, 4
mov edx, dword [ebp - 0x25c]
jmp 0x100051d6
xor eax, eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x234], eax
push ecx
push dword [ebp - 0x260]
mov dword [ebp - 0x224], edx
push eax
mov dword [ebp - 0x220], edi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x254]
add esp, 0xc
mov edx, dword [ebp - 0x258]
movq xmm0, qword [str.__TrueType_]
movq qword [ecx + edx], xmm0
mov ax, word [0x100c605c]
mov word [ecx + edx + 8], ax
mov al, byte [0x100c605e]
mov byte [ecx + edx + 0xa], al
mov byte [ecx + edx + 0xb], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
cmp dword [ebp - 0x220], 0x10
lea eax, [ebp - 0x234]
push ecx
cmovae eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push eax
push dword [ebp - 0x250]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x250]
test eax, eax
je 0x100052fd
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
cmp ecx, 0x10
jb 0x100052dd
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100052d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10005374
push ecx
push edx
call fcn.100a9b5d
add esp, 8
mov eax, esi
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.100a95f7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
call fcn.10006810
mov ecx, dword [ebp - 0x220]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [ebp - 0x24c]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x23c]
movq qword [esi + 0x10], xmm0
cmp ecx, 0x10
jb 0x100052dd
mov edx, dword [ebp - 0x234]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100052d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100052d3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call fcn.10001380
call fcn.100012e0
int3