Function at 0x10002260
Capabilities:
Delete file
Write file on windows

Disassembly:
sub esp, 0x60
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 0x100022a9
mov edi, 1
jmp 0x100022c5
cmp edi, 4
jg 0x100022b5
mov edi, 4
jmp 0x100022c5
xor eax, eax
cmp edi, 8
setg al
dec eax
and al, 0xf0
add eax, 0x18
mov edi, eax
mov edx, dword [esp + 0x74]
lea ecx, [esp + 0x30]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov edx, dword [esp + 0x34]
mov eax, edi
and eax, 0xffff
mov dword [esp + 0x4c], edx
imul eax, edx
add eax, 0x1f
mov ecx, dword [esp + 0x38]
cdq
and edx, 0x1f
mov dword [esp + 0x48], 0x28
add eax, edx
mov dword [esp + 0x50], ecx
mov ebx, eax
mov word [esp + 0x54], 1
sar ebx, 5
imul ebx, ecx
shl ebx, 2
mov word [esp + 0x56], di
mov dword [esp + 0x58], esi
lea eax, [ebx + 0x28]
mov dword [esp + 0x5c], esi
push eax
push 0x42
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, 0xa
lea esi, [esp + 0x48]
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 edi, dword [sym.imp.GDI32.dll_SelectPalette]
mov esi, eax
test esi, esi
je 0x10002388
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
push 0
push esi
push ebp
call edi
push ebp
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x1000238c
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x74]
push 0
push eax
add eax, 0x28
push eax
push ecx
push 0
push edx
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x100023c4
push 1
push esi
push ebp
call edi
push ebp
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edi, dword [esp + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor ebp, ebp
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100023f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
lea eax, [esp + 0x10]
push ebp
push eax
lea ecx, [esp + 0x28]
push 0xe
add ebx, 0x36
mov word [esp + 0x32], bp
mov word [esp + 0x34], bp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
push esi
mov word [esp + 0x34], 0x4d42
mov dword [esp + 0x36], ebx
mov dword [esp + 0x3e], 0x36
call ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push eax
push esi
call ebp
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.10002000
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x60
ret