Function at 0x441f80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x578b00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
xor esi, esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x80], esi
call sub.MFC42.DLL_CString::CString_5
cmp dword [esp + 0x88], esi
je 0x442182
push esi
push esi
push esi
push str.DISPLAY
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0xe
push ebx
call ebp
push 0xc
push ebx
mov edi, eax
call ebp
imul edi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, 1
cmp edi, ebp
jg 0x4420d8
mov dword [esp + 0x10], ebp
mov cl, byte [esp + 0x10]
mov eax, ebp
shl eax, cl
shl eax, 2
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x88]
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov word [esp + 0x5e], ax
and eax, 0xffff
imul eax, ecx
add eax, 0x1f
mov edi, dword [esp + 0x40]
cdq
and edx, 0x1f
mov word [esp + 0x5c], bp
add eax, edx
mov edx, dword [esp + 0x14]
mov ebp, eax
mov dword [esp + 0x50], 0x28
sar ebp, 5
imul ebp, edi
shl ebp, 2
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edi
lea eax, [edx + ebp + 0x28]
mov dword [esp + 0x60], esi
push eax
push 0x42
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x50]
mov edi, eax
push 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x442113
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x442117
cmp edi, 4
jg 0x4420ea
mov dword [esp + 0x10], 4
jmp 0x442000
cmp edi, 8
jg 0x4420fc
mov dword [esp + 0x10], 8
jmp 0x442000
xor eax, eax
cmp edi, 0x10
setg al
dec eax
and al, 0xf8
add eax, 0x18
mov dword [esp + 0x10], eax
jmp 0x44200f
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
push 0
lea ecx, [eax + edi + 0x28]
push eax
mov eax, dword [esp + 0x90]
push ecx
push edx
push 0
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x44215b
push 1
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x8c]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4421bf
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
lea edx, [esp + 0x20]
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
push eax
push edx
lea eax, [esp + 0x30]
lea ebp, [edi + ebp + 0x36]
push 0xe
add edi, 0x36
push eax
push esi
mov word [esp + 0x3c], 0x4d42
mov dword [esp + 0x3e], ebp
mov dword [esp + 0x46], edi
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x20]
push 0
push ecx
push ebp
push edx
push esi
call ebx
mov ebx, dword [esp + 0x24]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret