Function at 0x429830
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push str.DISPLAY
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
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 esi, eax
call ebx
imul esi, eax
push ebp
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, 1
jg 0x429955
mov ebx, 1
mov eax, 1
mov cl, bl
shl eax, cl
shl eax, 2
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x7c]
lea eax, [esp + 0x38]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x3c]
mov eax, ebx
and eax, 0xffff
mov esi, dword [esp + 0x40]
imul eax, ecx
scasd eax, dword es:[edi]
rol dword [ebx - 0x7699e040], 0x5c
mov dword [esp + 0x5e], ebx
cdq
and edx, 0x1f
mov dword [esp + 0x50], 0x28
add eax, edx
mov edx, dword [esp + 0x10]
mov ebx, eax
mov dword [esp + 0x54], ecx
sar ebx, 5
imul ebx, esi
shl ebx, 2
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], 1
lea eax, [ebx + edx + 0x28]
mov dword [esp + 0x60], edi
push eax
push 0x42
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x50]
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 0x429987
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
call 0x559899ae
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebp
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x42998b
cmp esi, 4
jg 0x429964
mov ebx, 4
jmp 0x42987b
cmp esi, 8
jg 0x429973
mov ebx, 8
jmp 0x42987b
xor ebx, ebx
cmp esi, 0x18
setg bl
dec ebx
and ebx, 0xfffffff8
add ebx, 0x20
jmp 0x42988b
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x7c]
push 0
push eax
lea eax, [eax + edi + 0x28]
push eax
push ecx
push 0
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x4299cc
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 eax, dword [esp + 0x80]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4299ff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x68
ret 8
xor ebp, ebp
lea edx, [esp + 0x1c]
push ebp
push edx
lea eax, [esp + 0x30]
lea ecx, [ebx + edi + 0x36]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0xe
add edi, 0x36
push eax
push esi
mov word [esp + 0x3c], 0x4d42
mov dword [esp + 0x3e], ecx
mov word [esp + 0x42], bp
mov word [esp + 0x44], bp
mov dword [esp + 0x46], edi
call ebx
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ebp
push ecx
push edx
push eax
push esi
call ebx
mov edi, dword [esp + 0x24]
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, 0x68
ret 8