Function at 0x1000270c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push str.DISPLAY
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xe
push eax
mov dword [ebp - 4], eax
call ebx
push 0xc
mov edi, eax
push dword [ebp - 4]
call ebx
imul edi, eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, 1
jg 0x10002757
push 1
jmp 0x1000275e
cmp edi, 4
jg 0x10002761
push 4
pop edi
jmp 0x10002771
xor eax, eax
cmp edi, 8
setg al
dec eax
and al, 0xf0
add eax, 0x18
mov edi, eax
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [ebp - 0x3c]
push 0x20
movzx eax, di
imul eax, edx
add eax, 0x1f
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], esi
cdq
pop esi
mov ecx, dword [ebp - 0x38]
idiv esi
mov dword [ebp - 0x68], 0x28
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x5c], 1
mov word [ebp - 0x5a], di
mov ebx, eax
imul ebx, ecx
shl ebx, 2
lea eax, [ebx + 0x28]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0xa
lea esi, [ebp - 0x68]
pop ecx
mov edi, eax
rep movsd dword es:[edi], dword [esi]
push 0xf
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x18], eax
je 0x1000281d
push edi
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
push eax
call esi
push dword [ebp - 4]
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x10]
push edi
push eax
add eax, 0x28
push eax
push dword [ebp - 0x38]
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [ebp - 8], edi
je 0x10002858
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_RealizePalette]
push dword [ebp - 4]
push edi
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
push 0x8000080
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x1000287c
xor eax, eax
jmp 0x100028d7
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0xc]
push edi
push ecx
lea ecx, [ebp - 0x28]
push 0xe
add ebx, 0x36
push ecx
push eax
mov word [ebp - 0x28], 0x4d42
mov dword [ebp - 0x26], ebx
mov word [ebp - 0x22], di
mov word [ebp - 0x20], di
mov dword [ebp - 0x1e], 0x36
call esi
lea eax, [ebp - 0xc]
push edi
push eax
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret