Function at 0x40c270
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x421b30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
mov ebx, ecx
xor eax, eax
push ebp
mov ebp, dword [ebx]
mov word [esp + 0x34], ax
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 4]
push esi
push edi
push eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x3c], 0x9ac6cdd7
mov word [esp + 0x4a], 0x4f6
call fcn.0040c610
mov ecx, dword [ebx + 8]
mov word [esp + 0x3e], ax
push ecx
mov ecx, ebx
call fcn.0040c610
mov edx, dword [ebx + 0xc]
mov edi, dword [ebx + 4]
add edx, edi
mov ecx, ebx
push edx
mov word [esp + 0x44], ax
call fcn.0040c610
mov edx, dword [ebx + 8]
mov word [esp + 0x42], ax
mov eax, dword [ebx + 0x10]
mov ecx, ebx
add eax, edx
push eax
call fcn.0040c610
sub esp, 0x18
mov ecx, 6
lea esi, [esp + 0x50]
mov edi, esp
mov word [esp + 0x5c], ax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.0040c560
mov esi, dword [sym.imp.GDI32.dll_GetMetaFileBitsEx]
push 0
push 0
push ebp
mov word [esp + 0x58], ax
call esi
mov edi, eax
xor ebp, ebp
cmp edi, ebp
jne 0x40c366
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40c341
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x40c343
xor eax, eax
lea ecx, [esp + 0x18]
push 0x426560
push ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x20], 0x4236cc
call fcn.0040de04
push edi
call fcn.00418782
mov ebp, eax
xor eax, eax
add esp, 4
cmp ebp, eax
jne 0x40c39e
lea edx, [esp + 0x18]
push 0x426560
push edx
mov dword [esp + 0x24], 0x8007000e
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0x4236cc
call fcn.0040de04
mov dword [esp + 0x18], 0x4236d0
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x14]
push ebp
push edi
push eax
call esi
xor esi, esi
cmp eax, esi
jne 0x40c3fc
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x40c3d7
call edi
and eax, 0xffff
or eax, 0x80070000
jmp 0x40c3d9
xor eax, eax
lea ecx, [esp + 0x28]
push 0x426560
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], 0x4236cc
call fcn.0040de04
mov edx, dword [esp + 0x60]
push esi
push edx
mov ecx, ebx
call fcn.0040c580
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c451
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40c42a
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x40c42c
xor eax, eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push 0x426560
push eax
mov dword [esp + 0x30], 0x4236cc
call fcn.0040de04
mov dword [esp + 0x60], esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x40]
push 0x16
push edx
push esi
mov byte [esp + 0x6c], 1
mov dword [esp + 0x24], 0
call ebx
test eax, eax
jne 0x40c4be
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40c497
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x40c499
xor eax, eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x28]
push 0x426560
push eax
mov dword [esp + 0x30], 0x4236cc
call fcn.0040de04
lea ecx, [esp + 0x10]
push 0
push ecx
push edi
push ebp
push esi
call ebx
test eax, eax
jne 0x40c50f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40c4e8
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x40c4ea
xor eax, eax
mov dword [esp + 0x2c], eax
lea edx, [esp + 0x28]
xor eax, eax
push 0x426560
push edx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x30], 0x4236cc
call fcn.0040de04
test esi, esi
je 0x40c51a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov dword [esp + 0x5c], 0xffffffff
call fcn.004187ab
mov ecx, dword [esp + 0x54]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 4