Function at 0x40c150
Capabilities:
Delete file
Get file attributes
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430f23
mov eax, dword fs:[0]
push eax
mov eax, 0x12b0
call fcn.0042f270
mov eax, dword [0x44700c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x12b8], ecx
push esi
lea ecx, [ebp - 0x12b0]
call fcn.004023b0
mov dword [ebp - 4], 0
call fcn.004026f0
mov ecx, eax
test ecx, ecx
jne 0x40c1b2
push 0x80004005
call fcn.00402be0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x12b4], eax
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 1
mov edx, esi
mov eax, ecx
mov edi, 1
sub edx, eax
movzx eax, word [edx + ecx]
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
test ax, ax
jne 0x40c1d5
lea eax, [ebp - 0x224]
push 0x5c
push eax
call fcn.0041bf55
add esp, 8
test eax, eax
je 0x40c1ff
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x224]
call fcn.0040b780
test eax, eax
jne 0x40c225
push esi
lea eax, [ebp - 0x12b4]
push str.Cannot_Make_Path_:__s
push eax
call fcn.00407a40
add esp, 0xc
xor edi, edi
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x12b0]
test ebx, ebx
je 0x40c23b
push 3
push 0x440064
jmp 0x40c242
push 4
push str..tmp
call fcn.00407870
mov edx, dword [ebp - 0x12b0]
sub esp, 0xc
mov ecx, dword [ebp - 0x12b8]
call fcn.0040c4d0
add esp, 0xc
test eax, eax
jne 0x40c269
xor edi, edi
jmp 0x40c461
test edi, edi
je 0x40c461
test ebx, ebx
je 0x40c41a
push 3
push dword [ebp - 0x12b0]
lea eax, [ebp - 0x12a8]
lea ecx, [ebp - 0x12ac]
mov dword [ebp - 0x12ac], eax
call fcn.0040d330
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x12ac]
call fcn.00412d50
mov ebx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x12ac]
lea ecx, [ebp - 0x12a8]
cmp eax, ecx
je 0x40c2c6
push eax
call fcn.0041d8e7
add esp, 4
test ebx, ebx
jne 0x40c2e9
push dword [ebp - 0x12b0]
lea eax, [ebp - 0x12b4]
push 0x442650
push eax
call fcn.00407a40
add esp, 0xc
jmp 0x40c453
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
jne 0x40c2ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 4
je 0x40c30b
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [0x448ebc]
test eax, eax
jne 0x40c344
push 0x20
call fcn.0041965a
add esp, 4
mov dword [ebp - 0x12b8], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.004126f0
mov byte [ebp - 4], 1
mov dword [0x448ebc], eax
test eax, eax
jne 0x40c344
xor ecx, ecx
mov dword [ecx], 1
lea ecx, [eax + 0x14]
xor eax, eax
cmp eax, dword [ecx]
push 0
push 0x80
push 2
sbb eax, eax
and eax, ecx
push eax
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x12b8], eax
cmp eax, 0xffffffff
jne 0x40c39c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x12b4]
push str.CreateFile_:__s__d_
push eax
call fcn.00407a40
add esp, 0x10
mov ecx, ebx
xor edi, edi
call fcn.00413470
jmp 0x40c455
push ecx
lea edx, [ebp - 0x1224]
mov ecx, ebx
call fcn.004132b0
add esp, 4
test eax, eax
jle 0x40c405
push 0
lea ecx, [ebp - 0x12bc]
push ecx
push eax
lea eax, [ebp - 0x1224]
push eax
push dword [ebp - 0x12b8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c3f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
lea eax, [ebp - 0x12b4]
push str.WriteFile_:__s__d_
push eax
call fcn.00407a40
add esp, 0x10
xor edi, edi
push ecx
lea edx, [ebp - 0x1224]
mov ecx, ebx
call fcn.004132b0
add esp, 4
test eax, eax
jg 0x40c3b1
push dword [ebp - 0x12b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00413470
jmp 0x40c455
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push dword [ebp - 0x12b0]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40c455
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x12b0]
lea eax, [ebp - 0x12b4]
push str.MoveFile_:__s__d_
push eax
call fcn.00407a40
add esp, 0x10
xor edi, edi
push dword [ebp - 0x12b0]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x12b4]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c485
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x12b0]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40c4a7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00419174
mov esp, ebp
pop ebp
ret