Function at 0x4d1fe0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x568640
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c3678]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp + 0xc], edi
cmp ebx, edi
je 0x4d2208
cmp dword [ebp + 0x10], edi
je 0x4d2208
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
mov dword [ebp - 4], edi
push ebx
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d20a6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [ebp + 0xc]
call fcn.00421890
test eax, eax
je 0x4d20a1
push 0
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0053cd7d
add esp, 8
xor edx, edx
mov dword [esi - 0xc], eax
push ebx
mov word [esi + eax*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4d20a4
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp dword [esi - 0xc], edi
je 0x4d21b9
cmp dword [ebp - 0x14], edi
je 0x4d21b9
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
cmp dword [esi - 0xc], edi
jl 0x4d2182
push str._language_font_face_
push esi
call fcn.0053dece
add esp, 8
cmp eax, edi
je 0x4d2182
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x4d2182
mov edx, dword [ebp + 0x10]
mov ecx, eax
lea esi, [ebp + 0xc]
call fcn.0040e710
cmp eax, 0xffffffff
je 0x4d2182
mov ecx, eax
mov edx, str.face_
call fcn.0040e710
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4d2182
add ebx, 6
mov ecx, ebx
mov edx, 0x58a63c
call fcn.0040e710
cmp eax, 0xffffffff
je 0x4d2182
lea ecx, [ebp - 0x18]
push ecx
mov edx, esi
sub eax, ebx
push edx
mov ecx, ebx
call fcn.004232c0
push 0x58e460
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
call fcn.00421010
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00423c70
lea ecx, [ebp - 0x20]
call fcn.00423d60
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00423d60
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00423cf0
mov esi, dword [ebp + 8]
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00423d60
lea ecx, [ebp + 0xc]
call fcn.00423d60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [0x5cc90c]
mov eax, dword [edx + 0xc]
mov ecx, 0x5cc90c
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
add esi, 0xfffffff0
mov dword [edi], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d21f4
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x5cc90c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5cc90c
call edx
mov ecx, eax
mov eax, dword [ebp + 8]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret