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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x546491
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x595534]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3e0], ecx
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x3d4], eax
xor esi, esi
call fcn.0042f380
push eax
lea ecx, [ebp - 0x94]
call fcn.00429450
mov dword [ebp - 4], esi
call fcn.0042f390
mov ebx, eax
mov ecx, eax
call fcn.0042a030
lea ecx, [ebp - 0x94]
test al, al
je 0x42df9a
push dword [ebp - 0x3d4]
call fcn.00429810
push esi
push 0x80
push 3
push esi
push 1
push bind
lea ecx, [ebp - 0x94]
call fcn.00429da0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x42df18
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.004295e0
jmp 0x42e138
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
jne 0x42df3e
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004295e0
jmp 0x42e138
push esi
mov dword [ebp - 0x3d8], 0
call fcn.0050000c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x3d8]
push 0
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 - 0x3d8], esi
je 0x42e122
push edi
call fcn.004ffccb
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
xor edi, edi
call fcn.004295e0
jmp 0x42e138
push ebx
call fcn.004297f0
call fcn.0042f6e0
test al, al
je 0x42dfb2
call fcn.0042f3a0
mov ebx, eax
jmp 0x42e01c
call fcn.0042f3b0
push eax
lea ecx, [ebp - 0x19c]
call fcn.00429450
push 0
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 1
call fcn.00429da0
push eax
call fcn.00435750
add esp, 8
mov dword [ebp - 0x3d0], eax
lea ecx, [ebp - 0x94]
push eax
call fcn.00429da0
push eax
call fcn.00454700
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 0x3d0]
test eax, eax
je 0x42e00d
push eax
call fcn.004ffccb
add esp, 4
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 0
call fcn.004295e0
test ebx, ebx
jne 0x42e037
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004295e0
jmp 0x42e138
push 0xffffffffffffffff
push dword [ebp - 0x3d4]
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], 0
call fcn.00429480
push 0x57f2d8
push 0x57d880
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.0042a280
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.00429da0
push eax
push ebx
call fcn.00453fc0
add esp, 0x14
test eax, eax
je 0x42e0b8
lea ecx, [ebp - 0x118]
call fcn.004295e0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004295e0
jmp 0x42e138
mov esi, dword [ebp - 0x1a0]
test esi, esi
je 0x42e096
push esi
call fcn.0050000c
push esi
mov edi, eax
push edi
push dword [ebp - 0x3dc]
push ebx
call fcn.00454c50
add esp, 0x14
test eax, eax
je 0x42e105
cmp eax, 0x600
je 0x42e105
push edi
call fcn.004ffccb
add esp, 4
xor edi, edi
call fcn.0042f6e0
test al, al
jne 0x42e096
push ebx
call fcn.00453ce0
add esp, 4
jmp 0x42e096
call fcn.0042f6e0
test al, al
jne 0x42e117
push ebx
call fcn.00453ce0
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.004295e0
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.004295e0
test edi, edi
jne 0x42e1ad
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp - 0x3d4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42e1ad
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x42e1ad
push esi
mov dword [ebp - 0x3d0], 0
call fcn.0050000c
add esp, 4
mov edi, eax
lea eax, [ebp - 0x3d0]
push 0
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 - 0x3d0], esi
je 0x42e1ad
push edi
call fcn.004ffccb
add esp, 4
xor edi, edi
lea eax, [ebp - 0x3e4]
push eax
push 0
push esi
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov esi, eax
call fcn.004ffccb
mov ecx, dword [ebp - 0x3e0]
add esp, 4
add ecx, 0x51c
push esi
call fcn.00429860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ff9ee
mov esp, ebp
pop ebp
ret 4