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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1078
call fcn.0042b680
push ebx
push esi
xor esi, esi
push edi
mov edi, ecx
push esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ole32.dll_OleInitialize]
push dword [ebp + 8]
push str.Load_image___s_
push dword [edi + 0xf0]
call fcn.0041e63d
add esp, 0xc
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x429480
lea eax, [ebp - 0x1078]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424a92
add esp, 0xc
push eax
push str.Failed_to_open_image____s
push dword [edi + 0xf0]
call fcn.0041e63d
add esp, 0xc
mov ax, 1
jmp 0x429704
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x42949a
push str.Failed_to_read_image_file
jmp 0x429673
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp dword [ebp + 8], esi
je 0x42966e
cmp eax, esi
je 0x42966e
lea ecx, [ebp - 0x34]
push esi
push ecx
push dword [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
jne 0x429511
lea eax, [ebp - 0x1078]
push 0x1000
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00424a92
add esp, 0xc
push eax
push str.Failed_to_read_image_file____s
push dword [edi + 0xf0]
call fcn.0041e63d
add esp, 0xc
jmp 0x429680
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x42952d
push str.Failed_to_create_stream_to_load_image
jmp 0x429673
lea eax, [ebp - 0xc]
push eax
push 0x435c0c
push 1
push esi
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
test eax, eax
je 0x429550
push str.Failed_to_decode_image_file
jmp 0x429673
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x30]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x20]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x429680
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jne 0x429680
cmp dword [ebp - 0x10], esi
je 0x42969f
lea eax, [ebp - 0x78]
push eax
push 0x18
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x18
jne 0x429680
mov ax, word [ebp - 0x66]
cmp ax, si
je 0x429667
cmp ax, 8
jae 0x4295d5
cmp ax, 1
je 0x4295d5
cmp ax, 4
jne 0x429667
mov eax, dword [ebp - 0x70]
mov ebx, dword [ebp - 0x74]
mov dword [ebp - 8], eax
push 0x2c
lea eax, [ebp - 0x60]
push esi
push eax
mov dword [ebp - 0x24], ebx
call fcn.0042b620
mov eax, dword [ebp - 8]
add esp, 0xc
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x28]
push esi
push esi
push eax
lea eax, [ebp - 0x60]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x28
mov dword [ebp - 0x5c], ebx
mov word [ebp - 0x54], 1
mov word [ebp - 0x52], 0x18
mov dword [ebp - 0x50], esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
cmp eax, esi
mov dword [ebp - 0x14], eax
je 0x429680
push eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x20]
push esi
neg edx
push edx
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x20]
mov ecx, dword [eax]
push esi
push dword [ebp - 8]
push ebx
push esi
push esi
push dword [ebp - 4]
push eax
call dword [ecx + 0x20]
test eax, eax
je 0x429662
push str.Failed_to_render_image
jmp 0x429673
mov dword [ebp - 0x1c], esi
jmp 0x429680
push str.Image_is_unsuitable
jmp 0x429673
push str.Failed_to_allocate_memory_for_image
push dword [edi + 0xf0]
call fcn.0041e63d
pop ecx
pop ecx
cmp dword [ebp - 0x10], esi
je 0x42968e
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebp - 0x14], esi
je 0x42969f
push dword [ebp - 0x2c]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 4], esi
je 0x4296ad
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0xc]
cmp eax, esi
je 0x4296ba
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x4296c7
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x1c]
cmp ax, si
jne 0x429704
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor ax, ax
pop edi
pop esi
pop ebx
leave
ret 0x14