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

Disassembly:
push 0xffffffffffffffff
push 0x471d1c
mov eax, dword fs:[0]
push eax
sub esp, 0x3bc
mov eax, dword [0x492bec]
xor eax, esp
mov dword [esp + 0x3b8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492bec]
xor eax, esp
push eax
lea eax, [esp + 0x3d0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3e0]
mov esi, ecx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
call fcn.00414500
push 0x100
lea eax, [esp + 0xd0]
push 0
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [edi]
sub eax, 0x10
push eax
call fcn.004140c0
lea ebp, [eax + 0x10]
mov dword [esp + 0x28], ebp
lea ecx, [esp + 0xdc]
push ecx
lea edx, [esp + 0x1e0]
push edx
lea eax, [esp + 0x2e4]
push eax
lea ecx, [esp + 0x3c]
push ecx
push ebp
mov dword [esp + 0x3fc], 0
call dword [sym.imp.MSVCR90.dll__splitpath]
lea edx, [esp + 0xf0]
push edx
call dword [sym.imp.MSVCR90.dll__mbslwr]
add esp, 0x28
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x450dca
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esp + 0x18], eax
call dword [sym.imp.MSVCR90.dll_malloc]
mov ecx, dword [esp + 0x18]
add esp, 4
push 0
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push ecx
push ebx
push edi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x1c]
je 0x450e1a
push ebx
call sub.mfc90.dll_Ordinal_800
add esp, 4
add ebp, 0xfffffff0
or ecx, 0xffffffff
lea eax, [ebp + 0xc]
mov dword [esp + 0x3d8], ecx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x450dee
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
xor eax, eax
mov ecx, dword [esp + 0x3d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x3b8]
xor ecx, esp
call fcn.0046d6fc
add esp, 0x3c8
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.MSVCR90.dll__mbsicmp]
lea ecx, [esp + 0xcc]
push str..png
push ecx
call edi
add esp, 8
test eax, eax
jne 0x450ec4
lea ecx, [esp + 0x24]
call fcn.004508a0
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x3dc], 1
call fcn.004506f0
mov edx, dword [esp + 0x14]
push edx
push ebx
lea ecx, [esp + 0x2c]
call fcn.0044fac0
test eax, eax
je 0x450e91
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00450720
lea ecx, [esp + 0x24]
mov byte [esp + 0x3d8], 0
call fcn.00450620
jmp 0x45101e
mov ecx, dword [esp + 0x98]
push ebx
mov dword [esi + 0x74], ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x3d8], 0
call fcn.00450620
lea ecx, [esp + 0x18]
call fcn.0041df50
jmp 0x450dee
lea edx, [esp + 0xcc]
push str..bmp
push edx
call edi
add esp, 8
test eax, eax
jne 0x450f61
lea ecx, [esp + 0x24]
call fcn.00450880
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x3dc], 2
call fcn.004506f0
mov eax, dword [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.0044f960
test eax, eax
je 0x450f2e
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00450720
lea ecx, [esp + 0x24]
mov byte [esp + 0x3d8], 0
call fcn.00450610
jmp 0x45101e
mov edx, dword [esp + 0x98]
push ebx
mov dword [esi + 0x74], edx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x24]
mov byte [esp + 0x3d8], 0
call fcn.00450610
lea ecx, [esp + 0x18]
call fcn.0041df50
jmp 0x450dee
lea eax, [esp + 0xcc]
push str..jpg
push eax
call edi
add esp, 8
test eax, eax
je 0x450fbb
lea ecx, [esp + 0xcc]
push str..jpeg
push ecx
call edi
add esp, 8
test eax, eax
je 0x450fbb
lea edx, [esp + 0xcc]
push str..jpe
push edx
call edi
add esp, 8
test eax, eax
je 0x450fbb
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
lea ecx, [esp + 0x18]
call fcn.0041df50
jmp 0x450dee
lea ecx, [esp + 0x24]
call fcn.004508c0
push esi
lea ecx, [esp + 0x28]
mov byte [esp + 0x3dc], 3
call fcn.004506f0
mov eax, dword [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x2c]
call fcn.00450310
test eax, eax
je 0x450ff5
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.00450720
xor eax, eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3d8], 0
mov dword [esp + 0x24], vtable.dsDibJpeg.0
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
call fcn.004505e0
or edi, 0xffffffff
cmp dword [esi + 0x2c], edi
je 0x45102d
mov ecx, esi
call fcn.0044ee80
push ebx
call dword [sym.imp.MSVCR90.dll_free]
add ebp, 0xfffffff0
add esp, 4
mov dword [esp + 0x3d8], edi
lea edx, [ebp + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x451058
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov eax, 1
jmp 0x450df0