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

Disassembly:
push 0xffffffffffffffff
push 0x544050
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x579aa4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x28], ebx
cmp edi, ebx
je 0x46e9b7
cmp dword [esp + 0x40], ebx
je 0x46e9b7
mov eax, dword [0x57d4ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x57d4ac
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
mov dword [esp + 0x4c], ebx
push edi
mov dword [esp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
or ebp, 0xffffffff
cmp edi, ebp
je 0x46e80d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
lea ecx, [esp + 0x18]
call fcn.00402a20
cmp eax, ebx
je 0x46e809
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 + 0x14]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0050cd69
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 0x46e80d
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], ebx
je 0x46e96b
cmp dword [esp + 0x18], ebx
je 0x46e96b
mov eax, dword [0x57d4ac]
mov edx, dword [eax + 0xc]
mov ecx, 0x57d4ac
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x34], 1
cmp dword [esi - 0xc], ebx
jl 0x46e901
push str._language_font_face_
push esi
call fcn.0050c88b
add esp, 8
cmp eax, ebx
je 0x46e901
sub eax, esi
sar eax, 1
cmp eax, ebp
je 0x46e901
push eax
mov eax, dword [esp + 0x44]
push eax
lea ecx, [esp + 0x1c]
call fcn.00402830
cmp eax, ebp
je 0x46e901
push eax
push str.face_
lea ecx, [esp + 0x1c]
call fcn.00402830
mov edi, eax
cmp edi, ebp
je 0x46e901
add edi, 6
push edi
push 0x5608ac
lea ecx, [esp + 0x1c]
call fcn.00402830
cmp eax, ebp
je 0x46e901
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00404610
lea edx, [esp + 0x24]
push edx
push 0x55c950
lea eax, [esp + 0x30]
mov byte [esp + 0x3c], 2
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x30], ebx
call fcn.00402710
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x38], 3
call fcn.004049c0
lea ecx, [esp + 0x28]
call fcn.00406190
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 1
call fcn.00406190
mov edi, dword [esp + 0x20]
add edi, 0xfffffff0
push edi
call fcn.00405dd0
mov ecx, dword [esp + 0x40]
add eax, 0x10
mov dword [ecx], eax
add esp, 4
mov byte [esp + 0x34], bl
lea edx, [edi + 0xc]
mov eax, ebp
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x46e936
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x46e953
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x3c]
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 [0x57d4ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x57d4ac
call eax
mov edi, dword [esp + 0x3c]
add eax, 0x10
mov dword [edi], eax
lea eax, [esi - 0x10]
mov dword [esp + 0x34], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x46e9a1
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 [0x57d4ac]
mov eax, dword [edx + 0xc]
mov ecx, 0x57d4ac
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