Function at 0x410f50
Capabilities:
Delete file
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x2b4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0xab
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c8]
mov edi, 1
xor ebx, ebx
mov ecx, esi
mov ebp, dword [eax + 4]
mov dword [esp + 0x18], 0x8994
mov dword [esp + 0x2a0], edi
mov dword [esp + 0x2a4], edi
mov dword [esp + 0x10], ebx
call fcn.00408670
test eax, eax
jne 0x410fa6
xor edi, edi
jmp 0x4110d6
mov eax, dword [esp + 0x2c8]
cmp dword [eax + 0x1c], ebx
je 0x4110fc
mov edx, dword [eax + 0x24]
mov eax, dword [esi + 0x52bc]
mov ecx, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2a0], ecx
mov dword [esp + 0x2a4], ecx
mov ecx, dword [esi + 0x5410]
cmp ecx, edx
je 0x41100d
cmp eax, ebx
je 0x410feb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esi + 0x5414]
mov dword [esi + 0x52bc], ebx
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor edi, edi
mov dword [esp + 0x1c], 0x6c6b1
jmp 0x4110a6
cmp eax, ebx
je 0x4110a6
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebp
push ebx
push ebx
push 3
push ebx
lea edi, [esi + 0x5414]
push ebx
push 0xc0000000
push edi
mov dword [esi + 0x52bc], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
mov dword [esi + 0x52bc], eax
je 0x411075
cmp eax, 0xffffffff
je 0x411075
lea ecx, [esi + 0x52d4]
lea edx, [esi + 0x52cc]
push ecx
lea ecx, [esi + 0x52c4]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x411075
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x1c], eax
mov edx, dword [esi + 0x52bc]
push edx
call ebp
mov dword [esi + 0x52bc], ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call ebx
mov eax, dword [esi + 0x52c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call ebx
mov edi, 1
xor ebx, ebx
mov ecx, esi
call fcn.00408670
test eax, eax
je 0x4110c6
lea ecx, [esp + 0x18]
push 0x2ac
push ecx
mov ecx, dword [esi + 0x5f90]
call fcn.004494c0
cmp edi, ebx
je 0x4110d6
mov eax, dword [esp + 0x2c8]
cmp dword [eax + 0x1c], ebx
je 0x4110ed
mov eax, dword [esi + 0x52bc]
cmp eax, ebx
je 0x4110e7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x52bc], ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b4
ret 0xc
mov eax, dword [esi + 0x5744]
cmp eax, ebx
mov ebx, dword [esp + 0x2cc]
je 0x411128
mov edx, dword [esp + 0x2c8]
lea ecx, [esp + 0x14]
push ecx
push ebx
mov eax, dword [edx + 0x14]
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0040d030
mov eax, dword [esi + 0x52bc]
lea edx, [esp + 0x10]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41118a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x411158
mov dword [esp + 0x1c], 2
mov ecx, esi
call fcn.00408670
test eax, eax
jne 0x41116c
xor edi, edi
xor ebx, ebx
jmp 0x4110d6
lea ecx, [esp + 0x18]
push 0x2ac
push ecx
mov ecx, dword [esi + 0x5f90]
call fcn.004494c0
xor edi, edi
xor ebx, ebx
jmp 0x4110d6
mov edx, dword [esi + 0x5410]
push ebp
push ebx
push edx
call fcn.00435640
add esp, 0xc
mov dword [esi + 0x5410], eax
xor ebx, ebx
jmp 0x4110ca