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

Disassembly:
push 0x3e8
mov eax, 0x50844b
call fcn.004c8468
mov dword [ebp - 0x1c4], ecx
mov ebx, dword [ebp + 8]
xor eax, eax
push 0x84
push eax
mov edi, eax
mov dword [ebp - 0x1c], ebx
mov esi, eax
lea eax, [ebp - 0xac]
push eax
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0xac]
push 0x549010
call fcn.004162a1
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x548f80]
cmp word [eax], cx
jne 0x4149a7
test ebx, ebx
je 0x41491b
push ebx
lea ecx, [ebp - 0xac]
call fcn.004162d6
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push closesocket
push dword [ebp - 0xac]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x1c0], eax
cmp eax, ebx
jne 0x414957
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.004162c6
jmp 0x414b3d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x414944
and dword [ebp - 0x18], 0
push esi
call fcn.004c751f
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x1c0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x414b2b
push edi
call fcn.004c7047
pop ecx
xor edi, edi
jmp 0x414944
push eax
lea ecx, [ebp - 0xac]
call fcn.004162d6
cmp byte [0x548ec0], 0
je 0x4149ca
mov ebx, dword [0x54d898]
mov dword [ebp - 0x1c0], ebx
jmp 0x414a35
push 0x84
lea eax, [ebp - 0x1bc]
push 0
push eax
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0x1bc]
push 0x548ef8
call fcn.004162a1
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1bc]
call fcn.0040f3a3
mov ecx, dword [ebp - 0xac]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x18], eax
call fcn.0041cd0f
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c0], ebx
pop ecx
pop ecx
test eax, eax
je 0x414a2a
push eax
call fcn.004c7047
pop ecx
lea ecx, [ebp - 0x1bc]
call fcn.004162c6
test ebx, ebx
jne 0x414a41
or ebx, 0xffffffff
jmp 0x414944
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x134]
push 0x84
push 0
push eax
call fcn.004df090
add esp, 0xc
lea ecx, [ebp - 0x134]
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x1c]
call fcn.0041627d
push 0x52e19c
push 0x52b850
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.0041665c
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, dword [ebp - 0x1c0]
call fcn.0041ce15
add esp, 0xc
test eax, eax
je 0x414aba
lea ecx, [ebp - 0x134]
call fcn.004162c6
jmp 0x414944
mov esi, dword [ebp - 0x1c8]
test esi, esi
je 0x414aaa
push esi
call fcn.004c751f
mov edx, dword [ebp - 0x18]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x1c0]
push 3
push esi
push edi
call fcn.0041ce48
add esp, 0xc
test eax, eax
je 0x414b0c
cmp eax, 0x600
je 0x414b0c
push edi
call fcn.004c7047
xor edi, edi
cmp byte [0x548ec0], 0
pop ecx
jne 0x414aaa
mov ecx, dword [ebp - 0x1c0]
call fcn.0041ce7b
jmp 0x414aaa
cmp byte [0x548ec0], 0
jne 0x414b20
mov ecx, dword [ebp - 0x1c0]
call fcn.0041ce7b
lea ecx, [ebp - 0x134]
call fcn.004162c6
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.004162c6
test edi, edi
jne 0x414ba7
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1c0], eax
cmp eax, ebx
je 0x414ba7
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x414ba7
push esi
mov dword [ebp - 0x1c], ebx
call fcn.004c751f
pop ecx
push ebx
mov ebx, dword [ebp - 0x1c0]
mov edi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], esi
je 0x414ba7
push edi
call fcn.004c7047
pop ecx
xor edi, edi
lea eax, [ebp - 0x20]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.004c7047
pop ecx
mov ecx, dword [ebp - 0x1c4]
push esi
add ecx, 0x46c
call fcn.004160e9
call fcn.004c8412
ret 4