Function at 0x4d4640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push str.DISPLAY
mov ebx, edx
mov dword [ebp - 0x38], ecx
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0xe
push edi
call esi
push 0xc
push edi
mov dword [ebp - 0x34], eax
call esi
mov esi, dword [ebp - 0x34]
push edi
imul esi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, 1
jg 0x4d4699
mov dword [ebp - 0x34], 1
jmp 0x4d46ab
mov ecx, 4
mov eax, 0x18
cmp esi, ecx
cmovle eax, ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
xorps xmm0, xmm0
push eax
push 0x18
push dword [ebp - 0x38]
movups xmmword [ebp - 0x30], xmm0
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp - 0x2c]
mov eax, 1
mov esi, dword [ebp - 0x28]
xorps xmm0, xmm0
mov word [ebp - 0x64], ax
mov eax, dword [ebp - 0x34]
mov word [ebp - 0x62], ax
movzx eax, ax
imul eax, ecx
mov dword [ebp - 0x6c], ecx
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
mov dword [ebp - 0x4c], 0
add eax, 0x1f
mov dword [ebp - 0x70], 0x28
cdq
and edx, 0x1f
mov dword [ebp - 0x68], esi
add eax, edx
mov dword [ebp - 0x60], 0
sar eax, 5
imul eax, esi
shl eax, 6
mov dword [ebp - 0x40], eax
lea ecx, [eax + 0x28]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movups xmm0, xmmword [ebp - 0x70]
mov esi, eax
xor eax, eax
push 0xf
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x34], eax
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x60]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x50]
movq qword [esi + 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x4d4787
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
push dword [ebp - 0x3c]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov dword [ebp - 0x34], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
push esi
lea ecx, [esi + 0x28]
mov dword [ebp - 8], 0
push ecx
push dword [ebp - 0x28]
push 0
push dword [ebp - 0x38]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x4d47c5
push 1
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [ebx + 0x14], 8
jb 0x4d47cd
mov ebx, dword [ebx]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4d4800
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x40]
mov eax, 0x4d42
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0x36
push 0
mov word [ebp - 0x18], ax
lea eax, [ebp - 8]
push eax
push 0xe
lea eax, [ebp - 0x18]
mov dword [ebp - 0x12], 0
push eax
push ebx
mov dword [ebp - 0x16], edi
mov dword [ebp - 0xe], 0x36
call esi
push 0
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 0x44]
push ebx
call esi
mov esi, dword [ebp - 0x48]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00634bf3
mov esp, ebp
pop ebp
ret