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

Disassembly:
mov eax, 0x430f5a
call fcn.004279d0
sub esp, 0x90
push ebx
push esi
push edi
xor ebx, ebx
push 0x60
lea eax, [ebp - 0x84]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0xc
cmp word [ebp + 0x18], bx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x1c], ebx
jne 0x4240ec
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [0x442788]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
cmp dword [eax - 8], ebx
je 0x424014
push eax
lea eax, [ebp - 0x14]
push str._s_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
jmp 0x42401c
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator_2
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x424054
or dword [ebp - 4], eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edi, eax
push edi
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
lea ecx, [ebp - 0x24]
push ebx
push ecx
push edi
push eax
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 0x1c]
push eax
push 0x4350d8
push ebx
push edi
push dword [ebp - 0x20]
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4240de
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
jmp 0x42410a
movzx eax, word [ebp + 0x18]
push 0x2000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [ebp - 0x10], eax
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x424043
mov ax, word [ebp + 0x18]
cmp ax, bx
jne 0x42413e
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
inc eax
push eax
call sub.MFC42.DLL_operatornew
push dword [ebp + 8]
mov dword [ebp - 0x34], eax
push eax
call sub.MSVCRT.dll_strcpy
add esp, 0x10
jmp 0x424142
mov word [ebp - 0x2c], ax
cmp byte [ebp + 0xc], bl
je 0x424174
push 0x64
mov dword [ebp - 0x40], edi
call sub.MFC42.DLL_operatornew
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov dword [ebp - 4], 1
je 0x424043
lea ecx, [ebp - 0x84]
push 0xffffffffffffffff
push ecx
mov ecx, eax
jmp 0x4242e5
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push ebx
call esi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x9c]
push eax
push 0x18
push edi
mov edi, dword [sym.imp.GDI32.dll_GetObjectA]
call edi
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x4241ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x98]
cmp byte [ebp + 0x14], bl
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
je 0x4242ad
lea eax, [ebp - 0x84]
push eax
call fcn.00423c94
pop ecx
mov dword [ebp - 0x40], eax
push ebx
call esi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x58]
push eax
push 0x18
push dword [ebp - 0x40]
call edi
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x7c], ebx
je 0x424043
push 0xcc0020
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push ebx
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0x10]
cmp eax, 8
je 0x424287
cmp eax, 0x10
je 0x424272
cmp eax, 0x18
je 0x42425b
cmp eax, 0x20
jne 0x424297
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
imul eax, dword [ebp - 0x84]
lea eax, [ecx + eax*4]
mov dword [ebp - 0x70], eax
jmp 0x424297
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x74]
imul eax, dword [ebp - 0x84]
lea ecx, [ecx + eax*2]
add eax, ecx
mov dword [ebp - 0x6c], eax
jmp 0x424297
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x78]
imul eax, dword [ebp - 0x84]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x68], eax
jmp 0x424297
mov eax, dword [ebp - 0x80]
imul eax, dword [ebp - 0x84]
add eax, dword [ebp - 0x74]
mov dword [ebp - 0x64], eax
push 0x64
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 2
jmp 0x4242d4
mov eax, dword [ebp - 0x10]
push 0x64
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x46]
mov dword [ebp - 0x60], eax
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], 3
cmp ecx, ebx
je 0x424043
lea eax, [ebp - 0x84]
push 0xffffffffffffffff
push eax
call fcn.00423c4a
jmp 0x424045