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

Disassembly:
push 0xffffffffffffffff
push 0x4b26d0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4dbe18]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, edx
xor ebp, ebp
mov dword [esp + 0x28], ebp
cmp edi, ebp
je 0x47f5f5
cmp ebx, ebp
je 0x47f5f5
mov eax, dword [0x4e3954]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3954
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
mov dword [esp + 0x4c], ebp
push edi
mov dword [esp + 0x38], ebp
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47f47b
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.004126c0
cmp eax, ebp
je 0x47f477
push ebp
lea ecx, [esp + 0x20]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov esi, dword [esp + 0x14]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0048bd24
add esp, 8
xor edx, edx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], dx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x47f47b
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], ebp
je 0x47f5a2
cmp dword [esp + 0x1c], ebp
je 0x47f5a2
mov eax, dword [0x4e3954]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e3954
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x34], 1
cmp dword [esi - 0xc], ebp
jl 0x47f561
push str._language_font_face_
push esi
call fcn.0048ad43
add esp, 8
cmp eax, ebp
je 0x47f561
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x47f561
mov ecx, eax
mov edx, ebx
lea esi, [esp + 0x14]
call fcn.00402160
cmp eax, 0xffffffff
je 0x47f561
mov ecx, eax
mov edx, str.face_
call fcn.00402160
mov edi, eax
cmp edi, 0xffffffff
je 0x47f561
add edi, 6
mov ecx, edi
mov edx, 0x4c02e0
call fcn.00402160
cmp eax, 0xffffffff
je 0x47f561
mov ecx, esi
push ecx
sub eax, edi
mov ecx, edi
lea ebx, [esp + 0x24]
call fcn.004083e0
push 0x4bef70
lea edx, [esp + 0x2c]
push edx
mov eax, ebx
push eax
mov byte [esp + 0x40], 2
lea eax, [esp + 0x30]
mov dword [esp + 0x30], ebp
call fcn.004124b0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 3
call fcn.004064b0
lea ecx, [esp + 0x28]
call fcn.00403710
mov ecx, ebx
mov byte [esp + 0x34], 1
call fcn.00403710
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff0
push ecx
call fcn.00406650
mov esi, dword [esp + 0x40]
add eax, 0x10
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esi], eax
call fcn.00403710
lea ecx, [esp + 0x14]
call fcn.00403710
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
mov edi, dword [esp + 0x3c]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47f5df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edx, dword [0x4e3954]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e3954
call eax
mov ecx, eax
mov eax, dword [esp + 0x3c]
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret