Function at 0x10059c10
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e0eb
mov eax, dword fs:[0]
push eax
sub esp, 0x4bc
mov eax, dword [0x1008400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x298]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x1005a048
push 0x100767f0
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.data
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.anno.ini
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCanonicalizeW]
push 0x80
lea eax, [ebp - 0x90]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x4a0]
push eax
push 0x40
lea eax, [ebp - 0x90]
push eax
push 0x10076814
push str.method
push str.render
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x90]
push eax
push 0x1007680c
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x1005a048
cmp dword [0x1008437c], edi
jne 0x10059dca
mov eax, dword [0x10084374]
test eax, eax
jne 0x10059d26
push str.d3d11.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10084374], eax
test eax, eax
je 0x10059dc0
mov esi, dword [0x10084378]
test esi, esi
jne 0x10059d48
push str.D3D11CreateDevice
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x10084378], esi
test esi, esi
je 0x10059dc0
xor eax, eax
cmp dword [0x1008437c], eax
jne 0x10059db4
movaps xmm0, xmmword [0x10077150]
lea eax, [ebp - 0x4c8]
push 0x10084380
push eax
push 0x1008437c
push 7
push 7
lea eax, [ebp - 0x4bc]
mov dword [ebp - 0x4ac], 0x9300
push eax
push 0x20
push 0
push 1
push 0
mov ecx, esi
mov dword [ebp - 0x4a8], 0x9200
movups xmmword [ebp - 0x4bc], xmm0
mov dword [ebp - 0x4a4], 0x9100
call dword [0x1006f584]
call esi
cmp dword [0x1008437c], edi
je 0x10059dc0
cmp dword [0x10084380], edi
je 0x10059dc0
test eax, eax
je 0x10059dca
mov eax, 1
jmp 0x1005a04a
cmp dword [0x1008438c], edi
jne 0x10059ee3
mov eax, dword [0x10084384]
test eax, eax
jne 0x10059df3
push str.D2d1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10084384], eax
test eax, eax
je 0x10059dc0
mov esi, dword [0x10084388]
test esi, esi
jne 0x10059e15
push str.D2D1CreateFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x10084388], esi
test esi, esi
je 0x10059dc0
cmp dword [0x1008438c], edi
jne 0x10059e54
push 0x1008438c
lea eax, [ebp - 0x4c8]
mov dword [ebp - 0x4c8], edi
push eax
push 0x100768d8
push 1
mov ecx, esi
call dword [0x1006f584]
call esi
cmp dword [0x1008438c], edi
je 0x10059dc0
test eax, eax
jne 0x10059dc0
cmp dword [0x10084390], edi
jne 0x10059ee3
mov eax, dword [0x1008437c]
test eax, eax
je 0x10059dc0
mov dword [ebp - 0x4c0], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x4c0]
mov esi, dword [eax]
push ecx
push 0x100768e8
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x1006f584]
call esi
mov eax, dword [0x1008438c]
push 0x10084390
push dword [ebp - 0x4c0]
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x44]
mov ecx, esi
call dword [0x1006f584]
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c0]
test eax, eax
je 0x10059ed6
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1006f584]
call esi
cmp dword [0x10084390], 0
je 0x10059dc0
cmp dword [0x1008439c], 0
jne 0x10059f67
mov eax, dword [0x10084394]
test eax, eax
jne 0x10059f0d
push str.Dwrite.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x10084394], eax
test eax, eax
je 0x10059dc0
mov esi, dword [0x10084398]
test esi, esi
jne 0x10059f33
push str.DWriteCreateFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [0x10084398], esi
test esi, esi
je 0x10059dc0
cmp dword [0x1008439c], 0
jne 0x10059f67
push 0x1008439c
push 0x10076908
push 0
mov ecx, esi
call dword [0x1006f584]
call esi
cmp dword [0x1008439c], 0
je 0x10059dc0
test eax, eax
jne 0x10059dc0
cmp dword [0x100843a8], 0
jne 0x1005a048
mov eax, dword [0x100843a0]
test eax, eax
jne 0x10059f95
push str.Dcomp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x100843a0], eax
test eax, eax
je 0x1005a043
cmp dword [0x100843a4], 0
jne 0x10059fb7
push str.DCompositionCreateDevice
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100843a4], eax
test eax, eax
je 0x1005a043
cmp dword [0x100843a8], 0
jne 0x1005a048
mov eax, dword [0x1008437c]
test eax, eax
je 0x1005a043
mov dword [ebp - 0x4c4], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x4c4]
mov esi, dword [eax]
push ecx
push 0x100768e8
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x1006f584]
call esi
mov esi, dword [0x100843a4]
mov ecx, esi
push 0x100843a8
push 0x100768f8
push dword [ebp - 0x4c4]
call dword [0x1006f584]
call esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c4]
test eax, eax
je 0x1005a03a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x1006f584]
call esi
cmp dword [0x100843a8], 0
jne 0x1005a048
mov edi, 1
mov eax, edi
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.10069210
mov esp, ebp
pop ebp
ret