Function at 0x10091670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
push ebx
push esi
push edi
lea edi, [ebp - 0x1bc]
mov ecx, 0x6f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0xf8], 0
mov esi, esp
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xc], eax
mov esi, esp
push 0xc
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp esi, esp
call fcn.1000318e
mov esi, eax
mov edi, esp
push 0xe
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cmp edi, esp
call fcn.1000318e
imul esi, eax
mov dword [ebp - 0x18], esi
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp esi, esp
call fcn.1000318e
cmp dword [ebp - 0x18], 1
jg 0x10091731
mov eax, 1
mov word [ebp - 0x24], ax
jmp 0x1009175c
cmp dword [ebp - 0x18], 4
jg 0x10091742
mov eax, 4
mov word [ebp - 0x24], ax
jmp 0x1009175c
cmp dword [ebp - 0x18], 8
jg 0x10091753
mov eax, 8
mov word [ebp - 0x24], ax
jmp 0x1009175c
mov eax, 0x18
mov word [ebp - 0x24], ax
mov esi, esp
lea eax, [ebp - 0x74]
push eax
push 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xbc], 0x28
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xb4], eax
mov eax, 1
mov word [ebp - 0xb0], ax
mov eax, 0x10
mov word [ebp - 0xae], ax
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x9c], 0
movzx eax, word [ebp - 0x24]
imul eax, dword [ebp - 0x70]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x6c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x3c]
lea edx, [ecx + eax + 0x28]
mov esi, esp
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xe0], eax
mov esi, esp
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xc8], eax
mov ecx, 0xa
lea esi, [ebp - 0xbc]
mov edi, dword [ebp - 0xc8]
rep movsd dword es:[edi], dword [esi]
mov esi, esp
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xec], eax
cmp dword [ebp - 0xec], 0
je 0x100918bd
mov esi, esp
push 0
call dword [sym.imp.USER32.dll_GetDC]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xc], eax
mov esi, esp
push 0
mov eax, dword [ebp - 0xec]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xf8], eax
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp esi, esp
call fcn.1000318e
mov esi, esp
push 0
mov eax, dword [ebp - 0xc8]
push eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc8]
lea eax, [edx + ecx + 0x28]
push eax
mov ecx, dword [ebp - 0x6c]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp esi, esp
call fcn.1000318e
cmp dword [ebp - 0xf8], 0
je 0x1009193e
mov esi, esp
push 1
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
cmp esi, esp
call fcn.1000318e
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
cmp esi, esp
call fcn.1000318e
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp esi, esp
call fcn.1000318e
mov esi, esp
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0xffffffff
jne 0x10091979
xor eax, eax
jmp 0x10091a4c
mov eax, 0x4d42
mov word [ebp - 0x8c], ax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 0x36]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x8a], eax
xor eax, eax
mov word [ebp - 0x86], ax
xor eax, eax
mov word [ebp - 0x84], ax
mov eax, dword [ebp - 0x30]
add eax, 0x36
mov dword [ebp - 0x82], eax
mov esi, esp
push 0
lea eax, [ebp - 0x54]
push eax
push 0xe
lea ecx, [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0xd4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.1000318e
mov esi, esp
push 0
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0xc8]
push edx
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.1000318e
mov esi, esp
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp esi, esp
call fcn.1000318e
mov esi, esp
mov eax, dword [ebp - 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp esi, esp
call fcn.1000318e
mov esi, esp
mov eax, dword [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1000318e
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x10091a80]
call fcn.10004b97
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004d22
add esp, 0x1bc
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 8