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

Disassembly:
push 0xffffffffffffffff
push 0x568008
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5a53f4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov edi, dword [esp + 0x40]
cmp edi, ebx
je 0x401ec6
cmp dword [esp + 0x44], ebx
je 0x401ec6
mov eax, dword [0x5a9538]
mov edx, dword [eax + 0xc]
mov ecx, 0x5a9538
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x40], esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
mov dword [esp + 0x4c], ebx
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c80
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
lea ecx, [esp + 0x44]
call fcn.00403560
cmp eax, ebx
je 0x401c7c
push ebx
lea ecx, [esp + 0x1c]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0x40]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00534cc1
add esp, 8
cmp eax, ebx
jl 0x401c72
cmp eax, dword [esi - 8]
jg 0x401c72
xor edx, edx
mov dword [esi - 0xc], eax
push edi
mov word [esi + eax*2], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401c80
push 0x80070057
call fcn.00404da0
mov esi, dword [esp + 0x40]
cmp dword [esi - 0xc], ebx
je 0x401e73
cmp dword [esp + 0x18], ebx
je 0x401e73
mov eax, dword [0x5a9538]
mov edx, dword [eax + 0xc]
mov ecx, 0x5a9538
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov byte [esp + 0x34], 1
cmp dword [esi - 4], 1
jle 0x401cc5
mov eax, dword [esi - 0xc]
push eax
lea ecx, [esp + 0x44]
call fcn.00404870
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push ebx
push ecx
push esi
push ebx
push 0xfde9
call edi
mov esi, eax
cmp esi, ebx
jle 0x401d17
push esi
lea ecx, [esp + 0x18]
call fcn.00403560
cmp eax, ebx
je 0x401d08
mov edx, dword [esp + 0x18]
push esi
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.004047c0
push eax
push ebx
push 0xfde9
call edi
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00404800
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x40]
call fcn.00404b90
mov eax, dword [0x5a9538]
mov edx, dword [eax + 0xc]
mov ecx, 0x5a9538
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov bl, 2
mov byte [esp + 0x34], bl
cmp dword [ebp - 0xc], 0
jl 0x401e0a
push str._language_font_face_
push ebp
call fcn.00534fdc
add esp, 8
test eax, eax
je 0x401e0a
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
je 0x401e0a
push eax
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403460
cmp eax, 0xffffffff
je 0x401e0a
push eax
push str.face_
lea ecx, [esp + 0x1c]
call fcn.00403460
mov esi, eax
cmp esi, 0xffffffff
je 0x401e0a
add esi, 6
push esi
push 0x584650
lea ecx, [esp + 0x1c]
call fcn.00403460
cmp eax, 0xffffffff
je 0x401e0a
sub eax, esi
push eax
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.004034a0
lea edx, [esp + 0x24]
push edx
push 0x584654
lea eax, [esp + 0x30]
mov byte [esp + 0x3c], 3
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], 0
call fcn.00403330
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 4
call fcn.00403750
lea ecx, [esp + 0x28]
call fcn.00404d70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], bl
call fcn.00404d70
mov esi, dword [esp + 0x20]
add esi, 0xfffffff0
push esi
call fcn.00404cb0
mov edi, dword [esp + 0x40]
add eax, 0x10
add esp, 4
mov dword [edi], eax
mov byte [esp + 0x34], 1
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e41
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [ebp - 0x10]
mov byte [esp + 0x34], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x34], 0xffffffff
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
jmp 0x401e97
mov edx, dword [0x5a9538]
mov eax, dword [edx + 0xc]
mov ecx, 0x5a9538
call eax
mov edi, dword [esp + 0x3c]
add eax, 0x10
mov dword [edi], eax
mov dword [esp + 0x34], 0xffffffff
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401eb0
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 [0x5a9538]
mov eax, dword [edx + 0xc]
mov ecx, 0x5a9538
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