Function at 0x10071740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x100ca00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 0
push 0
push str.DISPLAY
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
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 ebx, eax
call esi
push edi
imul ebx, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp ebx, 1
jg 0x1007179b
mov ebx, 1
jmp 0x100717bb
cmp ebx, 4
jg 0x100717a7
mov ebx, 4
jmp 0x100717bb
mov ecx, 8
mov eax, 0x18
cmp ebx, ecx
cmovle eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, eax
lea eax, [ebp - 0x68]
push eax
push 0x18
push dword [ebp - 0x1c]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp - 0x64]
mov eax, 1
mov esi, dword [ebp - 0x60]
mov word [ebp - 0x44], ax
movzx eax, bx
imul eax, ecx
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], esi
mov word [ebp - 0x42], bx
add eax, 0x1f
mov dword [ebp - 0x40], 0
cdq
and edx, 0x1f
mov dword [ebp - 0x3c], 0
add eax, edx
mov dword [ebp - 0x38], 0
sar eax, 5
imul eax, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 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 - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movups xmm0, xmmword [ebp - 0x50]
mov esi, eax
push 0xf
mov dword [ebp - 0x24], esi
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x40]
movups xmmword [esi + 0x10], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [esi + 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
test ebx, ebx
je 0x10071890
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 0x10071892
xor ebx, ebx
push 0
push esi
lea ecx, [esi + 0x28]
push ecx
push dword [ebp - 0x60]
push 0
push dword [ebp - 0x1c]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
test ebx, ebx
je 0x100718c6
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 + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100718ec
xor esi, esi
jmp 0x10071948
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 - 0x24]
push ebx
call esi
mov esi, dword [ebp - 0x28]
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 esi, 1
mov eax, dword [ebp + 0xc]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10071963
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008c351
mov esp, ebp
pop ebp
ret