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

Disassembly:
push 0x3e0
mov eax, 0x49cf8c
call fcn.0047f7dc
mov dword [ebp - 0x3e8], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x98]
xor eax, eax
mov dword [ebp - 0x3e4], ebx
push 0x4d0aa8
mov edi, eax
mov esi, eax
call fcn.00425270
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [0x4d0b40]
cmp word [eax], cx
jne 0x4176fc
test ebx, ebx
je 0x417667
push ebx
lea ecx, [ebp - 0x98]
call fcn.004252a5
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push 1
push SysReAllocString
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
jne 0x4176a3
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.00425295
jmp 0x417878
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x417690
and dword [ebp - 0x3e0], 0
push esi
call fcn.0047f4b0
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x3e0]
push eax
push esi
push edi
push dword [ebp - 0x3dc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x3dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3e0], esi
je 0x417866
push edi
call fcn.0047ecd0
pop ecx
xor edi, edi
jmp 0x417690
push eax
lea ecx, [ebp - 0x98]
call fcn.004252a5
cmp byte [0x4d0a28], 0
je 0x41771f
mov ebx, dword [0x4d37a8]
mov dword [ebp - 0x3dc], ebx
jmp 0x41777a
push 0x4d0bd8
lea ecx, [ebp - 0x1a8]
call fcn.00425270
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
call fcn.00418e51
mov ecx, dword [ebp - 0x98]
xor edx, edx
push eax
push 2
mov dword [ebp - 0x3e0], eax
call fcn.00411f89
mov ebx, eax
mov eax, dword [ebp - 0x3e0]
mov dword [ebp - 0x3dc], ebx
pop ecx
pop ecx
test eax, eax
je 0x41776f
push eax
call fcn.0047ecd0
pop ecx
lea ecx, [ebp - 0x1a8]
call fcn.00425295
test ebx, ebx
jne 0x417786
or ebx, 0xffffffff
jmp 0x417690
and dword [ebp - 0x3e0], 0
lea ecx, [ebp - 0x120]
or ebx, 0xffffffff
push ebx
push dword [ebp - 0x3e4]
call fcn.0042524c
push 0x4ad218
push 0x4ac4cc
lea ecx, [ebp - 0x120]
mov byte [ebp - 4], 2
call fcn.004256b6
mov edx, dword [ebp - 0x120]
lea eax, [ebp - 0x3d8]
push eax
lea eax, [ebp - 0x3e0]
push eax
push ecx
mov ecx, dword [ebp - 0x3dc]
call fcn.00412003
add esp, 0xc
test eax, eax
je 0x4177f2
lea ecx, [ebp - 0x120]
call fcn.00425295
jmp 0x417690
mov esi, dword [ebp - 0x1ac]
test esi, esi
je 0x4177e2
push esi
call fcn.0047f4b0
mov edx, dword [ebp - 0x3e0]
mov edi, eax
pop ecx
mov ecx, dword [ebp - 0x3dc]
push 3
push esi
push edi
call fcn.00412036
add esp, 0xc
test eax, eax
je 0x417847
cmp eax, 0x600
je 0x417847
push edi
call fcn.0047ecd0
xor edi, edi
cmp byte [0x4d0a28], 0
pop ecx
jne 0x4177e2
mov ecx, dword [ebp - 0x3dc]
call fcn.00412069
jmp 0x4177e2
cmp byte [0x4d0a28], 0
jne 0x41785b
mov ecx, dword [ebp - 0x3dc]
call fcn.00412069
lea ecx, [ebp - 0x120]
call fcn.00425295
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], ebx
call fcn.00425295
test edi, edi
jne 0x4178ee
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push dword [ebp - 0x3e4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3dc], eax
cmp eax, ebx
je 0x4178ee
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x4178ee
push esi
mov dword [ebp - 0x3e4], ebx
call fcn.0047f4b0
pop ecx
push ebx
mov ebx, dword [ebp - 0x3dc]
mov edi, eax
lea eax, [ebp - 0x3e4]
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 - 0x3e4], esi
je 0x4178ee
push edi
call fcn.0047ecd0
pop ecx
xor edi, edi
lea eax, [ebp - 0x3ec]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.0047ecd0
pop ecx
mov ecx, dword [ebp - 0x3e8]
push esi
add ecx, 0x52c
call fcn.00424f5e
call fcn.0047f79a
ret 4