Function at 0x10057780
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10156066
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x101e5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x364], ecx
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x100577d0
xor al, al
jmp 0x10057b75
xorps xmm0, xmm0
mov dword [ebp - 0x350], 0
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x34c], 0
movups xmmword [ebp - 0x360], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100577f7
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x360]
call fcn.10035df0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x34c]
mov eax, edx
mov ecx, dword [ebp - 0x350]
sub eax, ecx
push 7
push str.Fonts_
cmp eax, 7
jb 0x10057866
cmp edx, 0xf
lea esi, [ebp - 0x360]
lea eax, [ecx + 7]
cmova esi, dword [ebp - 0x360]
add esi, ecx
mov dword [ebp - 0x350], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 7], 0
lea eax, [ebp - 0x360]
jmp 0x10057880
mov byte [ebp - 0x320], 0
lea ecx, [ebp - 0x360]
push dword [ebp - 0x320]
push 7
call fcn.10050b40
push eax
lea ecx, [ebp - 0x33c]
call fcn.100352d0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x34c]
cmp ecx, 0xf
jbe 0x100578cc
mov edx, dword [ebp - 0x360]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100578c2
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100578c2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10152d39
add esp, 8
lea eax, [ebp - 0x344]
mov dword [ebp - 0x350], 0
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionFonts
push 0x80000002
mov dword [ebp - 0x34c], 0xf
mov byte [ebp - 0x360], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100579fb
mov dword [ebp - 0x324], eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x320], 0x104
push eax
lea eax, [ebp - 0x324]
mov dword [ebp - 0x340], 0x104
push eax
push 0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, 1
cmp eax, 0x103
je 0x100579ef
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
jne 0x10057997
cmp dword [ebp - 0x324], 1
jne 0x10057997
push dword [ebp + 0xc]
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call edi
add esp, 0xc
test eax, eax
je 0x10057a40
lea eax, [ebp - 0x340]
mov dword [ebp - 0x320], 0x104
push eax
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x340], 0x104
push eax
lea eax, [ebp - 0x324]
mov dword [ebp - 0x324], 0
push eax
push 0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
inc esi
cmp eax, 0x103
jne 0x10057970
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x345], 0
mov ecx, dword [ebp - 0x328]
cmp ecx, 0xf
jbe 0x10057b6f
mov edx, dword [ebp - 0x33c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057b65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10057b65
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push dword [ebp - 0x340]
lea eax, [ebp - 0x31c]
mov dword [ebp - 0x36c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x368], 0
push eax
lea ecx, [ebp - 0x37c]
movups xmmword [ebp - 0x37c], xmm0
call fcn.10035df0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x33c]
cmp dword [ebp - 0x328], 0xf
push dword [ebp - 0x32c]
cmova eax, dword [ebp - 0x33c]
push eax
push ecx
lea ecx, [ebp - 0x37c]
call fcn.10051e00
mov ecx, dword [ebp - 0x364]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x360], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x360]
push eax
movq qword [ebp - 0x350], xmm0
call fcn.10035210
mov ecx, dword [ebp - 0x34c]
cmp ecx, 0xf
jbe 0x10057b11
mov edx, dword [ebp - 0x360]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057b07
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10057b3d
push ecx
push edx
call fcn.10152d39
add esp, 8
mov ecx, dword [ebp - 0x368]
cmp ecx, 0xf
jbe 0x10057b4d
mov edx, dword [ebp - 0x37c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10057b43
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10057b43
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10152d39
add esp, 8
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x345], 1
jmp 0x10057a02
push ecx
push edx
call fcn.10152d39
add esp, 8
mov al, byte [ebp - 0x345]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101528b9
mov esp, ebp
pop ebp
ret