Function at 0x453c50
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [0x510afc]
sub esp, 0x18
test eax, eax
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
je 0x453c71
push esi
push str.raster_load___s_
call fcn.0043bb00
add esp, 8
push 0x4c5ec0
push esi
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x28], edi
jne 0x453ca9
mov eax, dword [0x510afc]
test eax, eax
je 0x453ca0
push str.Unable_to_open_file
call fcn.0043bb00
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
push edi
push 1
lea eax, [esp + 0x1c]
push 0xd
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x453cea
mov eax, dword [0x510afc]
test eax, eax
je 0x453cd7
push str.Unable_to_read_header
call fcn.0043bb00
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x18
ret
cmp word [esp + 0x14], 4
je 0x453d1b
mov eax, dword [0x510afc]
test eax, eax
je 0x453d08
push str.Raster_version_mismatch
call fcn.0043bb00
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1b]
mov edx, dword [esp + 0x19]
mov eax, dword [esp + 0x17]
push esi
and ecx, 0xffff
push 0
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
call fcn.00453940
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x453d79
mov eax, dword [0x510afc]
test eax, eax
je 0x453d66
push str.raster_create_failed
call fcn.0043bb00
add esp, 4
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x1d]
or al, 4
test esi, esi
mov dword [esp + 0xc], eax
je 0x453d8e
or ah, 0x80
mov dword [esp + 0xc], eax
cmp word [esp + 0x17], 0
push ebp
mov dword [esp + 0x14], 0
jbe 0x453f0c
lea ebp, [ebx + 0xe]
jmp 0x453dac
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1f]
mov edx, dword [esp + 0x1d]
push eax
and ecx, 0xffff
push 0
and edx, 0xffff
push ecx
push edx
call fcn.00458cd0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x453ee9
push 1
push 0
push esi
call fcn.00458e00
mov edi, eax
add esp, 0xc
test edi, edi
je 0x453eae
push esi
call fcn.00458dc0
mov ecx, dword [esp + 0x23]
mov edx, dword [esp + 0x30]
and ecx, 0xffff
push edx
imul eax, ecx
push 1
push eax
push edi
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x14
cmp eax, 1
jne 0x453e6d
push esi
call fcn.00458f70
mov eax, dword [esp + 0x34]
add esp, 4
test eax, eax
mov dword [ebp], esi
je 0x453e37
push 0
push esi
call fcn.004591f0
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1b]
mov edi, dword [esp + 0x2c]
inc eax
and ecx, 0xffff
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x453da8
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [0x510afc]
test eax, eax
je 0x453e83
push str.Unable_to_read_pixel_data
call fcn.0043bb00
add esp, 4
push esi
call fcn.00458f70
push 1
push ebx
call fcn.004539c0
mov edi, dword [esp + 0x38]
add esp, 0xc
xor ebx, ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [0x510afc]
test eax, eax
je 0x453ec4
push str.Unable_to_lock_raster
call fcn.0043bb00
add esp, 4
push 1
push ebx
call fcn.004539c0
mov edi, dword [esp + 0x34]
add esp, 8
xor ebx, ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
mov eax, dword [0x510afc]
test eax, eax
je 0x453eff
push str.Unable_to_create_raster
call fcn.0043bb00
add esp, 4
push 1
push ebx
call fcn.004539c0
add esp, 8
xor ebx, ebx
push edi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret