Function at 0x413c58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce8
xor eax, eax
push esi
push edi
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.00413f14
pop ecx
test eax, eax
je 0x413c7e
or eax, 0xffffffff
jmp 0x413e80
push 0x104
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.dll_GetSystemDirectoryA
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0x44ed84
lea eax, [ebp - 0x110]
push eax
call sub.KERNEL32.dll_GetTempFileNameA
lea edx, [ebp - 0x214]
push edx
call fcn.004346dc
pop ecx
push 0x2e
lea ecx, [ebp - 0x214]
push ecx
call fcn.00401594
add esp, 8
mov edi, eax
mov esi, 0x44ed88
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 0
push 0x80
lea edx, [ebp - 0x214]
push edx
call fcn.0043456c
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413cfb
mov eax, 2
jmp 0x413e80
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 0x40]
push ecx
call fcn.0040b3fc
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x413d1a
mov dword [ebp - 0xc], 0xe
jmp 0x413d72
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0x40]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00434668
add esp, 0xc
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 0x40]
je 0x413d42
mov dword [ebp - 0xc], 4
jmp 0x413d68
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x40]
push eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp - 4]
push ecx
call fcn.00434694
add esp, 0xc
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 0x40]
je 0x413d68
mov dword [ebp - 0xc], 5
mov eax, dword [ebp - 8]
push eax
call fcn.0040b2e8
pop ecx
mov ecx, dword [ebp - 4]
push ecx
call fcn.00434644
pop ecx
lea eax, [ebp - 0x318]
push eax
push 0
push 0x44ed84
lea edx, [ebp - 0x110]
push edx
call sub.KERNEL32.dll_GetTempFileNameA
lea ecx, [ebp - 0x318]
push ecx
call fcn.004346dc
pop ecx
push 0x2e
lea eax, [ebp - 0x318]
push eax
call fcn.00401594
add esp, 8
mov edi, eax
mov esi, 0x44ed8d
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0xc], 0
jne 0x413e00
push 0
lea edx, [ebp - 0x214]
push edx
lea ecx, [ebp - 0x318]
push ecx
push 1
call sub.GDI32.dll_CreateScalableFontResourceA
test eax, eax
jne 0x413de9
mov dword [ebp - 0xc], 0xf
jmp 0x413e00
lea eax, [ebp - 0x318]
push eax
call sub.GDI32.dll_AddFontResourceA
test eax, eax
jne 0x413e00
mov dword [ebp - 0xc], 0xf
cmp dword [ebp - 0xc], 0
je 0x413e22
lea edx, [ebp - 0x318]
push edx
call fcn.004346dc
pop ecx
lea ecx, [ebp - 0x214]
push ecx
call fcn.004346dc
pop ecx
jmp 0x413e7d
cmp dword [ebp + 0x10], 0
je 0x413e7d
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x318]
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
lea edi, [ebp - 0x214]
add eax, 0x104
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret