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

Disassembly:
push 0x3e8
mov eax, 0x5bc54e
call fcn.005718de
mov dword [ebp - 0x3f4], 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.00589540
add esp, 0xc
lea ecx, [ebp - 0xac]
push 0x632140
call fcn.004bb669
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x6321c8]
cmp word [eax], cx
jne 0x4c103f
test ebx, ebx
je 0x4c0fb3
push ebx
lea ecx, [ebp - 0xac]
call fcn.004bb68e
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 - 0x3f0], eax
cmp eax, ebx
jne 0x4c0fef
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.00403943
jmp 0x4c11d2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4c0fdc
and dword [ebp - 0x18], 0
push esi
call fcn.005708f2
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x18]
push eax
push esi
push edi
push dword [ebp - 0x3f0]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3f0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], esi
je 0x4c11c0
push edi
call fcn.005708e4
pop ecx
xor edi, edi
jmp 0x4c0fdc
push eax
lea ecx, [ebp - 0xac]
call fcn.004bb68e
cmp byte [0x630b39], 0
je 0x4c1062
mov ebx, dword [0x63a01c]
mov dword [ebp - 0x3f0], ebx
jmp 0x4c10cd
push 0x84
lea eax, [ebp - 0x1bc]
push 0
push eax
call fcn.00589540
add esp, 0xc
lea ecx, [ebp - 0x1bc]
push 0x632250
call fcn.004bb669
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1bc]
call fcn.004c2684
mov ecx, dword [ebp - 0xac]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x18], eax
call fcn.004c7ecc
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x3f0], ebx
pop ecx
pop ecx
test eax, eax
je 0x4c10c2
push eax
call fcn.005708e4
pop ecx
lea ecx, [ebp - 0x1bc]
call fcn.00403943
test ebx, ebx
jne 0x4c10d9
or ebx, 0xffffffff
jmp 0x4c0fdc
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x134]
push 0x84
push 0
push eax
call fcn.00589540
add esp, 0xc
lea ecx, [ebp - 0x134]
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x1c]
call fcn.004bb645
push 0x5fa6d8
push 0x5f5a10
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 2
call fcn.004bba41
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x18]
push eax
push ecx
mov ecx, dword [ebp - 0x3f0]
call fcn.004c7fc2
add esp, 0xc
test eax, eax
je 0x4c1152
lea ecx, [ebp - 0x134]
call fcn.00403943
jmp 0x4c0fdc
mov esi, dword [ebp - 0x1c0]
test esi, esi
je 0x4c1142
push esi
call fcn.005708f2
mov edx, dword [ebp - 0x18]
mov edi, eax
mov ecx, dword [ebp - 0x3f0]
push esi
push edi
call fcn.004c7ff5
add esp, 0xc
test eax, eax
je 0x4c11a1
cmp eax, 0x600
je 0x4c11a1
push edi
call fcn.005708e4
xor edi, edi
cmp byte [0x630b39], 0
pop ecx
jne 0x4c1142
mov ecx, dword [ebp - 0x3f0]
call fcn.004c8026
jmp 0x4c1142
cmp byte [0x630b39], 0
jne 0x4c11b5
mov ecx, dword [ebp - 0x3f0]
call fcn.004c8026
lea ecx, [ebp - 0x134]
call fcn.00403943
lea ecx, [ebp - 0xac]
mov dword [ebp - 4], ebx
call fcn.00403943
test edi, edi
jne 0x4c123c
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 - 0x3f0], eax
cmp eax, ebx
je 0x4c123c
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4c123c
push esi
mov dword [ebp - 0x1c], ebx
call fcn.005708f2
pop ecx
push ebx
mov ebx, dword [ebp - 0x3f0]
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 0x4c123c
push edi
call fcn.005708e4
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.005708e4
pop ecx
mov ecx, dword [ebp - 0x3f4]
push esi
add ecx, 0x46c
call fcn.004bb4b6
call fcn.00571888
ret 4