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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0e4a
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4e24e0]
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 0x4760ba
cmp dword [ebp + 0x10], edi
je 0x4760ba
mov eax, dword [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
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 0x475f59
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [ebp + 0xc]
call fcn.00402b90
test eax, eax
je 0x475f54
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.0044600f
add esp, 8
test eax, eax
jl 0x475f4a
cmp eax, dword [esi - 8]
jg 0x475f4a
xor edx, edx
mov dword [esi - 0xc], eax
push ebx
mov word [esi + eax*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x475f57
push 0x80070057
call fcn.00411620
mov esi, dword [ebp + 0xc]
xor edi, edi
cmp dword [esi - 0xc], edi
je 0x47606b
cmp dword [ebp - 0x14], edi
je 0x47606b
mov eax, dword [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
cmp dword [esi - 0xc], edi
jl 0x476034
push str._language_font_face_
push esi
call fcn.00446ee4
add esp, 8
cmp eax, edi
je 0x476034
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x476034
mov edx, dword [ebp + 0x10]
mov ecx, eax
lea esi, [ebp + 0xc]
call fcn.00402920
cmp eax, 0xffffffff
je 0x476034
mov ecx, eax
mov edx, str.face_
call fcn.00402920
mov ebx, eax
cmp ebx, 0xffffffff
je 0x476034
add ebx, 6
mov ecx, ebx
mov edx, 0x4b10f8
call fcn.00402920
cmp eax, 0xffffffff
je 0x476034
push ebx
mov ecx, esi
push ecx
sub eax, ebx
lea ecx, [ebp - 0x18]
call fcn.00410940
lea edx, [ebp - 0x1c]
push edx
push 0x4b10fc
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
push ecx
mov dword [ebp - 0x1c], edi
call fcn.0040e6f0
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00411540
lea ecx, [ebp - 0x20]
call fcn.00402430
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402430
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004115b0
mov esi, dword [ebp + 8]
add eax, 0x10
lea ecx, [ebp - 0x10]
mov dword [esi], eax
call fcn.00402430
lea ecx, [ebp + 0xc]
call fcn.00402430
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 [0x4e768c]
mov eax, dword [edx + 0xc]
mov ecx, 0x4e768c
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 0x4760a6
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 [0x4e768c]
mov edx, dword [eax + 0xc]
mov ecx, 0x4e768c
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