Function at 0x494720
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x6c
mov eax, dword [0x50e74c]
xor eax, esp
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x70]
xorps xmm0, xmm0
push ebx
push ebp
push esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x80]
push edi
mov dword [esp + 0x1c], eax
xor eax, eax
push eax
push eax
push eax
push str.DISPLAY
mov dword [esp + 0x58], 0
mov dword [esp + 0x6c], 0
movdqu xmmword [esp + 0x70], xmm0
mov dword [esp + 0x80], 0
mov word [esp + 0x5c], ax
movq qword [esp + 0x5e], xmm0
mov dword [esp + 0x66], eax
movdqu xmmword [esp + 0x34], xmm0
mov dword [esp + 0x54], eax
movdqu xmmword [esp + 0x44], xmm0
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 ebp, eax
call esi
push edi
imul ebp, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp ebp, 1
jg 0x4947c2
mov ebx, 1
jmp 0x4947dd
cmp ebp, 4
jg 0x4947ce
mov ebx, 4
jmp 0x4947dd
mov eax, 8
mov ebx, 0x18
cmp ebp, eax
cmovle ebx, eax
lea eax, [esp + 0x5c]
push eax
push 0x18
push dword [esp + 0x18]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [esp + 0x60]
mov eax, 1
mov esi, dword [esp + 0x64]
mov word [esp + 0x2c], ax
movzx eax, bx
imul eax, ecx
mov dword [esp + 0x20], 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], esi
mov word [esp + 0x2e], bx
add eax, 0x1f
mov dword [esp + 0x30], 0
cdq
and edx, 0x1f
mov dword [esp + 0x34], 0
add eax, edx
mov dword [esp + 0x38], 0
sar eax, 5
imul eax, esi
mov dword [esp + 0x3c], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
shl eax, 2
mov dword [esp + 0x14], eax
add eax, 0x28
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
movdqu xmm0, xmmword [esp + 0x20]
mov esi, eax
push 0xf
mov dword [esp + 0x1c], esi
movdqu xmmword [esi], xmm0
movdqu xmm0, xmmword [esp + 0x34]
movdqu xmmword [esi + 0x10], xmm0
movq xmm0, qword [esp + 0x44]
movq qword [esi + 0x20], xmm0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ebx, eax
test ebx, ebx
je 0x4948c9
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 0x4948cb
xor ebx, ebx
push 0
push esi
lea ecx, [esi + 0x28]
push ecx
push dword [esp + 0x70]
push 0
push dword [esp + 0x24]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
test ebx, ebx
je 0x494901
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 [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x494947
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.004c515f
add esp, 0x6c
ret 8
mov edi, dword [esp + 0x14]
mov eax, 0x4d42
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, 0x36
mov word [esp + 0x4c], ax
xor eax, eax
push eax
mov dword [esp + 0x56], eax
lea eax, [esp + 0x4c]
push eax
push 0xe
lea eax, [esp + 0x58]
mov dword [esp + 0x5a], edi
push eax
push ebx
mov dword [esp + 0x6a], 0x36
call esi
push 0
lea eax, [esp + 0x4c]
push eax
push edi
push dword [esp + 0x24]
push ebx
call esi
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c515f
add esp, 0x6c
ret 8