Function at 0x49b6e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5ff051
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 0x49b9a3
mov ebx, ebp
and ebx, 3
cmp ebx, 1
mov dword [esp + 0xc], ebx
je 0x49b9a3
push ebp
lea ecx, [esp + 0x14]
call fcn.004131c0
test al, al
je 0x49b9a3
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x14]
lea esi, [eax + ebp]
cmp eax, esi
mov ecx, edi
jae 0x49b761
mov edi, edi
mov dl, byte [eax]
sub dl, 0x21
mov byte [ecx], dl
add eax, 1
add ecx, 1
cmp eax, esi
jb 0x49b750
and ebp, 0xfffffffc
jle 0x49b7c0
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 0x49b774
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 0x49b7eb
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 0x49b822
cmp ebx, 3
jne 0x49b825
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 0x49b866
push str.AddFontMemResourceEx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49b856
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 0x49b97f
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 0x49b892
add ebp, dword [edi + eax*4]
add eax, 1
cmp eax, ecx
jl 0x49b888
call fcn.005a2e2e
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x49b8ac
push 0x80004005
call fcn.00401480
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.0040ada0
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.00486ff0
add esp, 0x18
test eax, eax
jne 0x49b954
lea ecx, [esp + 0x18]
call fcn.005a9b22
push ebx
push 0x9021
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x268], 2
call fcn.005a9f9c
test eax, eax
je 0x49b943
push esi
push edi
lea ecx, [esp + 0x20]
call fcn.005a9870
lea ecx, [esp + 0x18]
call fcn.005a9ac0
lea ecx, [esp + 0x18]
mov byte [esp + 0x25c], 1
call fcn.005a9c2f
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 0x49b97f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.0059b05f
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.0059b05f
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