Function at 0x43bf20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a860
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x47fa30]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x8c], 0
xor eax, eax
mov word [ebp - 0x44], ax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x84], 0
xor ecx, ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], ecx
xor edx, edx
mov word [ebp - 0x28], dx
xor eax, eax
mov dword [ebp - 0x26], eax
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x6c], 0
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], 0
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCW]
mov dword [ebp - 0x34], eax
push 0xc
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, eax
push 0xe
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
imul esi, eax
mov dword [ebp - 0x8c], esi
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [ebp - 0x8c], 1
jg 0x43c050
mov edx, 1
mov word [ebp - 0x44], dx
jmp 0x43c095
cmp dword [ebp - 0x8c], 4
jg 0x43c064
mov eax, 4
mov word [ebp - 0x44], ax
jmp 0x43c095
cmp dword [ebp - 0x8c], 8
jg 0x43c078
mov ecx, 8
mov word [ebp - 0x44], cx
jmp 0x43c095
cmp dword [ebp - 0x8c], 0x18
jg 0x43c08c
mov edx, 0x18
mov word [ebp - 0x44], dx
jmp 0x43c095
mov eax, 0x20
mov word [ebp - 0x44], ax
movzx ecx, word [ebp - 0x44]
cmp ecx, 8
jg 0x43c0af
movzx ecx, word [ebp - 0x44]
mov edx, 1
shl edx, cl
shl edx, 2
mov dword [ebp - 0x40], edx
lea eax, [ebp - 0x84]
push eax
push 0x18
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [ebp - 0x6c], 0x28
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x64], eax
mov ecx, 1
mov word [ebp - 0x60], cx
mov dx, word [ebp - 0x44]
mov word [ebp - 0x5e], dx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
movzx eax, word [ebp - 0x44]
imul eax, dword [ebp - 0x80]
add eax, 0x1f
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
shl eax, 2
imul eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x14]
lea eax, [edx + ecx + 0x28]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x30], eax
mov ecx, 0xa
lea esi, [ebp - 0x6c]
mov edi, dword [ebp - 0x30]
rep movsd dword es:[edi], dword [esi]
push 0xf
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x43c19d
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x34], eax
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_RealizePalette]
push 0
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
lea edx, [ecx + eax + 0x28]
push edx
mov eax, dword [ebp - 0x7c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
cmp dword [ebp - 0x2c], 0
je 0x43c1ee
push 1
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.GDI32.dll_SelectPalette]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.GDI32.dll_RealizePalette]
mov eax, dword [ebp - 0x34]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebp - 4], 0
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x43c221
xor eax, eax
jmp 0x43c2ce
mov edx, 0x4d42
mov word [ebp - 0x28], dx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + eax + 0x36]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x26], eax
xor ecx, ecx
mov word [ebp - 0x22], cx
xor edx, edx
mov word [ebp - 0x20], dx
mov eax, dword [ebp - 0x40]
add eax, 0x36
mov dword [ebp - 0x1e], eax
push 0
lea ecx, [ebp - 0x90]
push ecx
push 0xe
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
lea ecx, [eax + edx + 0x28]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x43c2ce
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret