Function at 0x695620
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push str.DISPLAY
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebp, eax
push 0xe
push ebp
call ebx
push 0xc
push ebp
mov edi, eax
call ebx
imul edi, eax
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp edi, 1
jg 0x695741
mov ebx, 1
mov eax, 1
mov cl, bl
shl eax, cl
shl eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x78]
lea eax, [esp + 0x34]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x38]
mov eax, ebx
and eax, 0xffff
mov edi, dword [esp + 0x3c]
imul eax, ecx
add eax, 0x1f
mov word [esp + 0x5a], bx
cdq
and edx, 0x1f
mov dword [esp + 0x4c], 0x28
add eax, edx
mov edx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x50], ecx
sar ebx, 5
imul ebx, edi
shl ebx, 2
mov dword [esp + 0x54], edi
mov word [esp + 0x58], 1
lea eax, [ebx + edx + 0x28]
mov dword [esp + 0x5c], esi
push eax
push 0x42
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x4c]
mov edi, eax
push 0xf
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x18], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x695769
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push 0
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x69576d
cmp edi, 4
jg 0x695750
mov ebx, 4
jmp 0x69566b
cmp edi, 8
jg 0x69575f
mov ebx, 8
jmp 0x69566b
mov ebx, 0x18
jmp 0x69567b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x3c]
push 0
lea ecx, [eax + edi + 0x28]
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
push 0
push eax
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x6957b1
push 1
push esi
push ebp
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esp + 0x7c]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x6957e1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x64
ret 8
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
lea edx, [esp + 0x1c]
mov word [esp + 0x2a], ax
mov word [esp + 0x2c], ax
push eax
push edx
lea eax, [esp + 0x2c]
lea ebx, [ebx + edi + 0x36]
push 0xe
add edi, 0x36
push eax
push esi
mov word [esp + 0x38], 0x4d42
mov dword [esp + 0x3a], ebx
mov dword [esp + 0x42], edi
call ebp
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0
push ecx
push ebx
push edx
push esi
call ebp
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x64
ret 8