Function at 0x10107e70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101fe5ab
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x103b9004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x103bf3d8]
push 0x1b4
mov dword [ebp - 0x13c], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
mov dword [ebp - 0x138], esi
test esi, esi
je 0x1010811e
push 0x1b4
push 0
push esi
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [esi + 0x19c], 0
lea ebx, [esi + 4]
mov ecx, 0x4e
mov dword [ebx + 0x19c], 0
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [ebx + 0x190], eax
add esp, 0xc
mov dword [ebx + 0x194], eax
mov dword [esi + 0x1a4], eax
mov dword [esi + 0x1a8], eax
mov dword [esi + 0x1ac], eax
mov dword [esi + 0x1b0], eax
mov dword [esi], 1
mov dword [ebp - 0x118], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10107f47
lea eax, [ebp - 0x114]
sub ecx, edx
push eax
push ecx
lea ecx, [ebp - 0x118]
call fcn.10087380
push 0x1039cd78
push 1
lea ecx, [ebp - 0x118]
call fcn.10087380
push str.GDIPLUS.DLL
push 0xb
lea ecx, [ebp - 0x118]
call fcn.10087380
mov esi, dword [ebp - 0x118]
lea eax, [esi + 0xc]
test esi, esi
jne 0x10107f99
mov eax, 0x10202374
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x198], eax
test eax, eax
je 0x1010808c
mov eax, 0x1028ede0
mov dword [ebp - 0x130], 0
sub eax, ebx
mov edi, ebx
mov dword [ebp - 0x134], eax
nop word [eax + eax]
push dword [eax + edi]
push dword [ebx + 0x198]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi], eax
test eax, eax
je 0x10108082
mov eax, dword [ebp - 0x130]
add edi, 4
inc eax
mov dword [ebp - 0x130], eax
cmp eax, 0x4e
mov eax, dword [ebp - 0x134]
jb 0x10107fd0
push 0
lea eax, [ebp - 0x128]
mov dword [ebp - 0x128], 1
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x124], 0
push eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
call eax
push str.GDI32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebx + 0x19c], eax
test eax, eax
je 0x1010808c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AddFontMemResourceEx
push eax
call edi
push str.RemoveFontMemResourceEx
push dword [ebx + 0x19c]
mov dword [ebx + 0x190], eax
call edi
mov dword [ebx + 0x194], eax
jmp 0x1010808c
mov dword [ebx + 0x198], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x101080a8
dec dword [esi]
cmp dword [esi], 1
jge 0x101080a8
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov edi, dword [ebp - 0x13c]
mov eax, dword [ebp - 0x138]
push 0x18
mov dword [edi + 0x110], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x10108101
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], vtable.CWin32FontInfo.0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
push 0
mov dword [esi + 0x14], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [esi + 4], eax
jmp 0x10108103
xor esi, esi
mov eax, dword [edi + 0x108]
mov edi, dword [eax + 0x18]
test esi, esi
je 0x1010811e
mov ecx, dword [edi + 0x78]
test ecx, ecx
je 0x1010811b
mov eax, dword [ecx]
call dword [eax]
mov dword [edi + 0x78], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101f3fd0
mov esp, ebp
pop ebp
ret