Function at 0x4ac0f0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x61c251
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi]
mov ebp, dword [eax - 0xc]
xor eax, eax
mov dword [esp + 0x10], eax
cmp ebp, eax
mov dword [esp + 0x258], eax
je 0x4ac3b3
mov ebx, ebp
and ebx, 3
cmp ebx, 1
mov dword [esp + 0xc], ebx
je 0x4ac3b3
push ebp
lea ecx, [esp + 0x14]
call fcn.0041a720
test al, al
je 0x4ac3b3
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x14]
lea esi, [eax + ebp]
cmp eax, esi
mov ecx, edi
jae 0x4ac171
mov edi, edi
mov dl, byte [eax]
sub dl, 0x21
mov byte [ecx], dl
add eax, 1
add ecx, 1
cmp eax, esi
jb 0x4ac160
and ebp, 0xfffffffc
jle 0x4ac1d0
lea ecx, [ebp - 1]
lea esi, [edi + 1]
shr ecx, 2
mov eax, esi
add ecx, 1
movzx edx, byte [eax - 1]
movzx ebx, byte [eax]
add dl, dl
add dl, dl
shr bl, 4
and bl, 3
or dl, bl
mov byte [esi - 1], dl
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
shr dl, 2
and dl, 0xf
shl bl, 4
or dl, bl
mov byte [esi], dl
movzx edx, byte [eax + 2]
movzx ebx, byte [eax + 1]
and dl, 0x3f
shl bl, 6
or dl, bl
mov byte [esi + 1], dl
add eax, 4
add esi, 3
sub ecx, 1
jne 0x4ac184
mov ebx, dword [esp + 0x10]
lea eax, [ebp + ebp*2]
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
cmp ebx, 2
jne 0x4ac1fb
mov al, byte [edi + ebp + 1]
mov cl, byte [edi + ebp]
shr al, 4
add cl, cl
and al, 3
add cl, cl
or al, cl
mov byte [esi + edi], al
jmp 0x4ac232
cmp ebx, 3
jne 0x4ac235
movzx edx, byte [edi + ebp + 1]
mov cl, byte [edi + ebp]
lea eax, [edi + ebp + 1]
shr dl, 4
and dl, bl
add cl, cl
add cl, cl
or dl, cl
mov byte [esi + edi], dl
movzx edx, byte [edi + ebp + 2]
mov al, byte [eax]
shr dl, 2
add esi, 1
and dl, 0xf
shl al, 4
or dl, al
mov byte [esi + edi], dl
add esi, 1
push str.GDI32.DLL
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
je 0x4ac276
push str.AddFontMemResourceEx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4ac266
lea ecx, [esp + 0x10]
push ecx
push 0
push esi
push edi
call eax
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 0xffffffff
jne 0x4ac38f
lea edx, [esp + 0x150]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, esi
xor ebx, ebx
sar ecx, 2
xor ebp, ebp
xor eax, eax
cmp ecx, ebx
jle 0x4ac2a2
add ebp, dword [edi + eax*4]
add eax, 1
cmp eax, ecx
jl 0x4ac298
call fcn.005bc43d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4ac2bc
push 0x80004005
call fcn.00401470
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
push ebp
lea ecx, [esp + 0x154]
push ecx
lea edx, [esp + 0x18]
push str._sfont_08x.ttf
push edx
mov byte [esp + 0x26c], 1
call fcn.004030a0
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x38]
push eax
push ebp
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call fcn.00497cd0
add esp, 0x18
test eax, eax
jne 0x4ac364
lea ecx, [esp + 0x18]
call fcn.005be0de
push ebx
push 0x9021
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x268], 2
call fcn.005be558
test eax, eax
je 0x4ac353
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.005bde2c
lea ecx, [esp + 0x18]
call fcn.005be07c
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.005be1eb
push ebp
call dword [sym.imp.GDI32.dll_AddFontResourceA]
lea eax, [ebp - 0x10]
mov byte [esp + 0x25c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4ac38f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.005b465e
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
add esp, 0x250
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005b465e
mov ecx, dword [esp + 0x254]
add esp, 4
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x250
ret