Function at 0x4c0296
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x717dac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
mov dword [ebp - 0x28], ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 0x1c], eax
cmp dword [eax + 8], ecx
je 0x4c048e
push ecx
push ecx
push ecx
push 0x680320
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
call dword [sym.imp.GDI32.dll_CreateDCW]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0xe
push ebx
call esi
push 0xc
push ebx
mov dword [ebp - 0x18], eax
call esi
mov esi, dword [ebp - 0x18]
push ebx
imul esi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
inc eax
cmp esi, eax
jg 0x4c0300
mov edi, eax
jmp 0x4c0312
push 4
pop edi
cmp esi, edi
jle 0x4c0312
push 0x18
pop edi
push 8
pop eax
cmp esi, eax
cmovle edi, eax
lea eax, [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x1c]
push 0x18
push dword [eax + 8]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov esi, dword [ebp - 0x68]
xor eax, eax
mov ecx, dword [ebp - 0x6c]
inc eax
mov word [ebp - 0x4c], ax
xor edx, edx
mov eax, esi
mov dword [ebp - 0x48], edx
imul eax, ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
imul eax, eax, 3
mov dword [ebp - 0x58], 0x28
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], esi
mov word [ebp - 0x4a], di
mov dword [ebp - 0x44], eax
movzx eax, di
imul eax, ecx
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, esi
mov dword [ebp - 0x2c], eax
lea eax, [eax*4 + 0x28]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0xa
pop ecx
mov edi, eax
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, eax
test esi, esi
je 0x4c03cc
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov ebx, eax
push esi
push ebx
call edi
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x4c03cf
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
push 0
push eax
lea ecx, [eax + 0x28]
mov eax, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0x68]
push 0
push dword [eax + 8]
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x4c040a
xor eax, eax
inc eax
push eax
push esi
push ebx
call edi
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x4c040c
xor esi, esi
push esi
push 0x8000080
push 2
push esi
push esi
push 0x40000000
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c048e
mov edi, dword [ebp - 0x2c]
mov eax, 0x4d42
mov word [ebp - 0x14], ax
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0xe], eax
lea edi, [edi*4 + 0x36]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x12], edi
push eax
push 0xe
lea eax, [ebp - 0x14]
mov dword [ebp - 0xa], 0x36
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [edi - 0xe]
push eax
push dword [ebp - 0x18]
push ebx
call esi
mov esi, dword [ebp - 0x30]
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]
xor eax, eax
inc eax
jmp 0x4c0490
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0062f00e
leave
ret 4