Function at 0x46a2e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x5c], ecx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00401380
test eax, eax
jne 0x46a300
xor al, al
jmp 0x46a52a
push 0x28
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ecx], 0x28
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x28]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov word [eax + 0xc], 1
mov ecx, dword [ebp - 4]
mov word [ecx + 0xe], 0x18
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 0xe]
mov edx, dword [ebp - 4]
mov eax, ecx
imul eax, dword [edx + 4]
add eax, 0x1f
and eax, 0xffffffe0
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 4]
imul eax, dword [ecx + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x46a39c
xor al, al
jmp 0x46a52a
mov ecx, dword [ebp - 0x5c]
call fcn.0046a9c0
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
call fcn.00462450
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp + 0xc]
call fcn.00462450
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x5c]
call fcn.0046a9e0
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov ecx, dword [ebp + 8]
call fcn.0046d080
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0xffffffff
jne 0x46a461
xor al, al
jmp 0x46a52a
mov word [ebp - 0x54], 0x4d42
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov edx, dword [ebp - 0x40]
add ecx, dword [edx + 0x14]
mov dword [ebp - 0x52], ecx
mov word [ebp - 0x4e], 0
mov word [ebp - 0x4c], 0
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x20]
lea ecx, [ecx + eax*4 + 0xe]
mov dword [ebp - 0x4a], ecx
push 0
lea edx, [ebp - 0x14]
push edx
push 0xe
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46a4bb
xor al, al
jmp 0x46a52a
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x20]
lea edx, [ecx*4 + 0x28]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46a4e5
xor al, al
jmp 0x46a52a
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x58]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46a514
xor al, al
jmp 0x46a52a
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, 1
mov esp, ebp
pop ebp
ret 8