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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a05e8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5e6468]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x49ff3d
cmp dword [ebp + 0x10], ebx
je 0x49ff3d
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x49fcf7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
lea ecx, [ebp + 0xc]
call fcn.004a10e0
cmp eax, ebx
je 0x49fcf4
push ebx
lea ecx, [ebp - 0x14]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [ebp + 0xc]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0055e719
add esp, 8
cmp eax, ebx
jl 0x49fcea
cmp eax, dword [esi - 8]
jg 0x49fcea
xor edx, edx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49fcf7
push 0x80070057
call fcn.00425c60
mov esi, dword [ebp + 0xc]
cmp dword [esi - 0xc], ebx
je 0x49feee
cmp dword [ebp - 0x14], ebx
je 0x49feee
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
lea ebx, [eax + 0x10]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 1
cmp dword [esi - 4], 1
jle 0x49fd37
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp + 0xc]
call fcn.00427820
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push ecx
push esi
push 0
push 0xfde9
call edi
mov esi, eax
test esi, esi
jle 0x49fd87
push esi
lea ecx, [ebp - 0x10]
call fcn.004a10e0
test eax, eax
je 0x49fd7a
mov edx, dword [ebp - 0x14]
push esi
push eax
push edx
lea ecx, [ebp + 0xc]
call fcn.0042bcf0
push eax
push 0
push 0xfde9
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0042bd10
mov ebx, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
call fcn.00427dc0
mov eax, dword [0x5f22b0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f22b0
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
cmp dword [ebx - 0xc], 0
jl 0x49fe63
push str._language_font_face_
push ebx
call fcn.0055e4d1
add esp, 8
test eax, eax
je 0x49fe63
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x49fe63
push eax
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x10]
call fcn.004467e0
cmp eax, 0xffffffff
je 0x49fe63
push eax
push str.face_
lea ecx, [ebp - 0x10]
call fcn.004467e0
mov esi, eax
cmp esi, 0xffffffff
je 0x49fe63
add esi, 6
push esi
push 0x5c4a04
lea ecx, [ebp - 0x10]
call fcn.004467e0
cmp eax, 0xffffffff
je 0x49fe63
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004468e0
lea edx, [ebp - 0x20]
push edx
push 0x5c8e04
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
call fcn.00495510
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00427000
lea ecx, [ebp - 0x24]
call fcn.00426fe0
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00426fe0
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, esi
call fcn.00426f00
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x49fe94
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49feb4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49feda
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
mov edi, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49ff29
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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 edx, dword [0x5f22b0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5f22b0
call eax
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