Function at 0x574cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x6af320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x60], 0
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x44], eax
push 0xc
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0xe
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul esi, eax
mov dword [ebp - 0x64], esi
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x64], 1
jg 0x574d57
mov eax, 1
mov word [ebp - 0x40], ax
jmp 0x574d82
cmp dword [ebp - 0x64], 4
jg 0x574d68
mov ecx, 4
mov word [ebp - 0x40], cx
jmp 0x574d82
cmp dword [ebp - 0x64], 8
jg 0x574d79
mov edx, 8
mov word [ebp - 0x40], dx
jmp 0x574d82
mov eax, 0x18
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x8c]
push ecx
push 0x18
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [ebp - 0x3c], 0x28
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0x34], ecx
mov edx, 1
mov word [ebp - 0x30], dx
mov ax, word [ebp - 0x40]
mov word [ebp - 0x2e], ax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
movzx ecx, word [ebp - 0x40]
mov eax, ecx
imul eax, dword [ebp - 0x88]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x84]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x5c]
lea ecx, [eax + edx + 0x28]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x58], eax
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x48], eax
mov ecx, 0xa
lea esi, [ebp - 0x3c]
mov edi, dword [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x574e78
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x44], eax
push 0
mov eax, dword [ebp - 0x68]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
lea eax, [edx + ecx + 0x28]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [ebp - 0x60], 0
je 0x574ecc
push 1
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x44]
push edx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [ebp - 0x44]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp + 0xc]
call fcn.00413810
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0xffffffff
jne 0x574f0d
mov dword [ebp - 0x70], 0
lea ecx, [ebp + 0xc]
call fcn.00413150
mov eax, dword [ebp - 0x70]
jmp 0x574f9c
mov edx, 0x4d42
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x4c]
lea edx, [ecx + eax + 0x36]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x12], eax
xor ecx, ecx
mov word [ebp - 0xe], cx
xor edx, edx
mov word [ebp - 0xc], dx
mov eax, dword [ebp - 0x4c]
add eax, 0x36
mov dword [ebp - 0xa], eax
push 0
lea ecx, [ebp - 0x6c]
push ecx
push 0xe
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], 1
lea ecx, [ebp + 0xc]
call fcn.00413150
mov eax, dword [ebp - 0x74]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f24e0
mov esp, ebp
pop ebp
ret