Function at 0x1000d2c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10037018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push 0x1002b200
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.GDI32.dll_CreateDCW]
mov ebx, eax
push 0xe
push ebx
mov dword [ebp - 0x34], ebx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0xc
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul esi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, 1
jg 0x1000d322
lea ebx, [edi + 1]
jmp 0x1000d35b
cmp esi, 4
jg 0x1000d32e
mov ebx, 4
jmp 0x1000d35b
cmp esi, 8
jg 0x1000d33a
mov ebx, 8
jmp 0x1000d35b
cmp esi, 0x18
jg 0x1000d346
mov ebx, 0x18
jmp 0x1000d36b
cmp esi, 0x20
jg 0x1000d352
mov ebx, 0x20
jmp 0x1000d36b
mov ebx, dword [ebp - 0x28]
cmp bx, 8
ja 0x1000d36b
mov eax, 1
mov cl, bl
shl eax, cl
add eax, eax
add eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x74]
push edx
push 0x18
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp - 0x70]
mov esi, dword [ebp - 0x6c]
movzx eax, bx
imul eax, ecx
mov edx, 1
add eax, 0x1f
mov word [ebp - 0x50], dx
cdq
mov word [ebp - 0x4e], bx
and edx, 0x1f
lea ebx, [edx + eax]
mov eax, dword [ebp - 0x18]
sar ebx, 5
imul ebx, esi
add ebx, ebx
mov dword [ebp - 0x58], ecx
add ebx, ebx
lea ecx, [ebx + eax + 0x28]
push ecx
push 0x42
mov dword [ebp - 0x5c], 0x28
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov ecx, 0xa
lea esi, [ebp - 0x5c]
push 0xf
mov dword [ebp - 0x24], eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, eax
test edi, edi
je 0x1000d41e
push 0
call dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
push edi
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x1000d421
mov esi, dword [ebp - 0x34]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push 0
push eax
lea edx, [eax + edi + 0x28]
mov eax, dword [ebp - 0x6c]
push edx
push eax
push 0
push ecx
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1000d461
push 1
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
push esi
call dword [sym.imp.GDI32.dll_RealizePalette]
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [ebp - 0x2c]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000d497
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100256d0
mov esp, ebp
pop ebp
ret
xor ecx, ecx
push ecx
mov eax, 0x4d42
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x30]
push eax
lea ebx, [ebx + edi + 0x36]
mov dword [ebp - 0xe], ecx
push 0xe
lea ecx, [ebp - 0x14]
add edi, 0x36
push ecx
mov dword [ebp - 0xa], edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 0x12], ebx
call edi
mov eax, dword [ebp - 0x24]
push 0
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push esi
call edi
mov edi, dword [ebp - 0x28]
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]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100256d0
mov esp, ebp
pop ebp
ret