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

Disassembly:
push 0xffffffffffffffff
push 0x48fd86
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x4b39fc]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b39fc]
xor eax, esp
push eax
lea eax, [esp + 0x368]
mov dword fs:[0], eax
mov eax, dword [esp + 0x37c]
mov ebx, dword [esp + 0x378]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4b52c0]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
xor edx, edx
push eax
lea esi, [esp + 0x2c]
mov dword [esp + 0x1c], ebx
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x2c], ecx
mov word [esp + 0x30], dx
call fcn.004020a0
mov dword [esp + 0x370], ebp
mov eax, dword [0x4b5348]
cmp word [eax], bp
jne 0x4093d4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40930b
push eax
mov ecx, esi
push ecx
call fcn.00401f60
mov edx, dword [esp + 0x24]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409358
mov dword [esp + 0x370], 0xffffffff
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x409411
push eax
call fcn.00479054
add esp, 4
jmp 0x409411
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
jne 0x409390
mov dword [esp + 0x370], 0xffffffff
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x409411
push eax
call fcn.00479054
add esp, 4
jmp 0x409411
push ebp
mov dword [esp + 0x18], 0
call fcn.00476c60
add esp, 4
push 0
mov edi, eax
lea eax, [esp + 0x18]
push eax
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x14], ebp
je 0x4096ce
push edi
call fcn.00478198
add esp, 4
xor edi, edi
jmp 0x40932f
push eax
lea edx, [esp + 0x28]
push edx
call fcn.00401f60
mov ebx, dword [0x4fa9c4]
test ebx, ebx
jne 0x409520
mov dword [esp + 0x370], 0xffffffff
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x28]
cmp eax, ecx
je 0x40940d
push eax
call fcn.00479054
add esp, 4
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40947f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
je 0x40947f
push ebp
mov dword [esp + 0x1c], 0
call fcn.00476c60
add esp, 4
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebp
je 0x40947f
push edi
call fcn.00478198
add esp, 4
xor edi, edi
lea edx, [esp + 0x20]
push edx
push 0
push ebp
push edi
call dword [sym.imp.GDI32.dll_AddFontMemResourceEx]
push edi
mov ebp, eax
call fcn.00478198
inc dword [ebx + 0x47c]
mov ecx, dword [ebx + 0x47c]
mov eax, dword [ebx + 0x480]
add esp, 4
cmp ecx, eax
jl 0x4094e6
lea esi, [eax + eax]
test esi, esi
jne 0x4094bb
mov esi, 0xb
mov ecx, dword [ebx + 0x478]
lea eax, [esi*4]
push eax
push ecx
call fcn.004790e2
add esp, 8
test eax, eax
je 0x4096fb
mov dword [ebx + 0x480], esi
mov dword [ebx + 0x478], eax
mov edx, dword [ebx + 0x47c]
mov eax, dword [ebx + 0x478]
mov dword [eax + edx*4 - 4], ebp
mov ecx, dword [esp + 0x368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.004771de
add esp, 0x360
ret 8
mov ecx, dword [esp + 0x1c]
push 0xffffffffffffffff
lea edx, [esp + 0xb4]
xor eax, eax
push ecx
lea esi, [esp + 0xb4]
mov dword [esp + 0x20], 0
mov dword [esp + 0xb4], edx
mov word [esp + 0xb8], ax
call fcn.004020a0
push 0x49a104
mov edx, esi
push edx
mov ecx, 0x49a100
mov byte [esp + 0x378], 2
call fcn.00402550
cmp dword [0x4fa9b0], 0
jne 0x4095a7
push 0x18
call fcn.004776e1
add esp, 4
test eax, eax
je 0x409599
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
jmp 0x40959b
xor eax, eax
push eax
mov dword [0x4fa9b0], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [0x4fa9b0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [ebx], 1
mov byte [0x4fa9b4], 1
jne 0x4095ee
mov eax, dword [esp + 0xac]
mov esi, dword [ebx + 4]
lea ecx, [esp + 0x134]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.0041f240
mov dword [0x4fa9f4], eax
test eax, eax
je 0x40963a
cmp byte [0x4fa9b4], 0
je 0x409605
mov eax, dword [0x4fa9b0]
test eax, eax
je 0x409605
push eax
mov byte [0x4fa9b4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb0]
cmp eax, ecx
je 0x409620
push eax
call fcn.00479054
add esp, 4
mov dword [esp + 0x370], 0xffffffff
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
jmp 0x409402
mov ebp, dword [esp + 0x360]
test ebp, ebp
je 0x409605
push ebp
call fcn.00476c60
add esp, 4
cmp dword [ebx], 1
mov edi, eax
je 0x40965c
mov eax, 0x80000
jmp 0x40966c
mov eax, dword [esp + 0x18]
mov ebx, dword [ebx + 4]
push ebp
push edi
push eax
push ebx
call fcn.0041f320
cmp byte [0x4fa9b4], 0
mov dword [0x4fa9f4], eax
mov esi, eax
je 0x409693
mov eax, dword [0x4fa9b0]
test eax, eax
je 0x409693
push eax
mov byte [0x4fa9b4], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x4096af
cmp esi, 0x600
je 0x4096af
push edi
call fcn.00478198
add esp, 4
xor edi, edi
jmp 0x409605
mov eax, dword [esp + 0xac]
lea ecx, [esp + 0xb0]
cmp eax, ecx
je 0x4096ca
push eax
call fcn.00479054
add esp, 4
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x370], 0xffffffff
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x28]
cmp eax, edx
je 0x4096ee
push eax
call fcn.00479054
add esp, 4
test edi, edi
jne 0x40947f
jmp 0x409411
dec dword [ebx + 0x47c]
jmp 0x4094f6