Function at 0x43e430
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5723d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e8e38]
xor esi, esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x18], eax
cmp dword [esp + 0x88], esi
je 0x43e632
push esi
push esi
push esi
push str.DISPLAY
mov dword [esp + 0x24], esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_CreateDCA]
mov ebp, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ebx, eax
push 0xe
push ebx
call ebp
push 0xc
push ebx
mov edi, eax
call ebp
imul edi, eax
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ebp, 1
cmp edi, ebp
jg 0x43e588
mov dword [esp + 0x10], ebp
mov cl, byte [esp + 0x10]
mov eax, ebp
shl eax, cl
shl eax, 2
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x88]
lea ecx, [esp + 0x38]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
mov word [esp + 0x5e], ax
and eax, 0xffff
imul eax, ecx
add eax, 0x1f
mov edi, dword [esp + 0x40]
cdq
and edx, 0x1f
mov word [esp + 0x5c], bp
add eax, edx
mov dword [esp + 0x54], ecx
mov ebp, eax
mov eax, dword [esp + 0x14]
sar ebp, 5
imul ebp, edi
shl ebp, 2
mov dword [esp + 0x50], 0x28
mov dword [esp + 0x58], edi
lea ecx, [eax + ebp + 0x28]
mov dword [esp + 0x60], esi
push ecx
push 0x42
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
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 + 0x14], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x43e5c3
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
push 0
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_RealizePalette]
jmp 0x43e5c7
cmp edi, 4
jg 0x43e59a
mov dword [esp + 0x10], 4
jmp 0x43e4b0
cmp edi, 8
jg 0x43e5ac
mov dword [esp + 0x10], 8
jmp 0x43e4b0
xor eax, eax
cmp edi, 0x10
setg al
dec eax
and al, 0xf8
add eax, 0x18
mov dword [esp + 0x10], eax
jmp 0x43e4bf
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x88]
push 0
push eax
lea edx, [eax + edi + 0x28]
mov eax, dword [esp + 0x48]
push edx
push eax
push 0
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetDIBits]
test esi, esi
je 0x43e60b
push 1
push esi
push ebx
call dword [sym.imp.GDI32.dll_SelectPalette]
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esp + 0x8c]
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43e66f
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0
call fcn.0055962c
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call fcn.0055962c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret
xor eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov word [esp + 0x2e], ax
mov word [esp + 0x30], ax
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
lea ebp, [edi + ebp + 0x36]
push 0xe
add edi, 0x36
push ecx
push esi
mov word [esp + 0x3c], 0x4d42
mov dword [esp + 0x3e], ebp
mov dword [esp + 0x46], edi
call ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push edx
push ebp
push eax
push esi
call ebx
mov ebx, dword [esp + 0x24]
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]
lea ecx, [esp + 0x18]
mov byte [esp + 0x80], 0
call fcn.0055962c
lea ecx, [esp + 0x8c]
mov dword [esp + 0x80], 0xffffffff
call fcn.0055962c
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret