Function at 0x411be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x730b1c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.GDI32.dll_CreateDCA]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 0xe
push edi
call esi
push 0xc
push edi
mov ebx, eax
call esi
imul ebx, eax
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp ebx, 1
jg 0x411c3e
mov ebx, 1
jmp 0x411c5a
cmp ebx, 4
jg 0x411c4a
mov ebx, 4
jmp 0x411c5a
mov eax, 8
mov ebx, 0x18
cmp dword [ebp - 0x18], eax
cmovle ebx, eax
lea eax, [ebp - 0x6c]
push eax
push 0x18
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp - 0x68]
mov eax, 1
mov esi, dword [ebp - 0x64]
mov word [ebp - 0x48], ax
movzx eax, bx
imul eax, ecx
mov dword [ebp - 0x54], 0x28
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x46], bx
add eax, 0x1f
mov dword [ebp - 0x44], 0
cdq
and edx, 0x1f
mov dword [ebp - 0x40], 0
add eax, edx
mov dword [ebp - 0x3c], 0
sar eax, 5
imul eax, esi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
shl eax, 2
mov dword [ebp - 0x18], eax
add eax, 0x28
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movups xmm0, xmmword [ebp - 0x54]
mov esi, eax
push 0xf
mov dword [ebp - 0x28], esi
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x44]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x34]
movq qword [esi + 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
test ebx, ebx
je 0x411d2f
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov edi, eax
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectPalette]
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x411d31
xor ebx, ebx
push 0
push esi
lea ecx, [esi + 0x28]
push ecx
push dword [ebp - 0x64]
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
test ebx, ebx
je 0x411d65
push 1
push ebx
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]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x411d9a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00610840
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x18]
mov eax, 0x4d42
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0x36
mov word [ebp - 0x14], ax
xor eax, eax
push eax
mov dword [ebp - 0xe], eax
lea eax, [ebp - 0x20]
push eax
push 0xe
lea eax, [ebp - 0x14]
mov dword [ebp - 0x12], edi
push eax
push ebx
mov dword [ebp - 0xa], 0x36
call esi
push 0
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 0x28]
push ebx
call esi
mov esi, dword [ebp - 0x2c]
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.00610840
mov esp, ebp
pop ebp
ret