Function at 0x10017de0
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1003ab38
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x10043330]
xor eax, esp
mov dword [esp + 0x54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10043330]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov al, byte [esp + 0x7c]
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
xor ebp, ebp
push ebp
mov ecx, esi
mov byte [esi], al
mov dword [esp + 0x20], ebp
call fcn.10016f70
mov dword [esp + 0x20], vtable.MemoryControl.0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x74], ebp
mov edx, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
call fcn.1002b1c0
lea ecx, [esp + 0x18]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x24], eax
call fcn.10016f70
test al, al
je 0x10018089
mov eax, 0x4ec4ec4f
mul dword [esp + 0x18]
shr edx, 5
cmp edx, 0x32
mov dword [esp + 0x18], edx
jle 0x10018089
push esi
lea edi, [esp + 0x50]
call fcn.10017bc0
mov byte [esp + 0x74], 1
lea edi, [esp + 0x2c]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x2c], 0x5c
call fcn.10018140
mov edx, ebx
lea ecx, [eax + 1]
push edx
lea esi, [esp + 0x34]
call fcn.10016b90
push 0xe
push 0x1003f194
mov ecx, esi
mov byte [esp + 0x7c], 2
call fcn.10003120
mov eax, dword [esp + 0x50]
mov ebx, 8
cmp dword [esp + 0x64], ebx
jae 0x10017ed6
lea eax, [esp + 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebp
push 0x80
push 4
push ebp
push 1
push 0xc0000000
push eax
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10017f48
cmp dword [esp + 0x48], ebx
jb 0x10017f09
mov eax, dword [esp + 0x34]
push eax
call fcn.1002b322
add esp, 4
xor edi, edi
cmp dword [esp + 0x64], ebx
mov esi, 7
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
jb 0x10017f30
mov ecx, dword [esp + 0x50]
push ecx
call fcn.1002b322
add esp, 4
mov eax, dword [esp + 0x24]
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], edi
mov word [esp + 0x50], di
cmp eax, edi
jmp 0x1001808f
cmp dword [esp + 0x48], ebx
mov eax, dword [esp + 0x34]
jae 0x10017f56
lea eax, [esp + 0x34]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10017f89
lea esi, [esp + 0x30]
call fcn.10003e00
lea esi, [esp + 0x4c]
call fcn.10003e00
jmp 0x10018089
mov eax, dword [esp + 0x18]
lea ebx, [eax - 0x32]
cmp ebx, eax
jge 0x10017ffe
mov edi, ebx
imul edi, edi, 0x68
add edi, dword [esp + 0x1c]
lea ecx, [ecx]
lea ecx, [edi + 4]
call fcn.10017960
cmp eax, dword [edi]
jne 0x10017ff2
push 2
xor ecx, ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x100180bb
push edi
call fcn.10029d40
push 0
lea edx, [esp + 0x20]
push edx
push 0x68
push edi
push esi
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100180ee
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
add ebx, 1
add edi, 0x68
cmp ebx, dword [esp + 0x18]
jl 0x10017fa0
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
mov eax, dword [esp + 0x50]
mov esi, 8
cmp dword [esp + 0x64], esi
jae 0x1001801d
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x64], esi
mov ecx, dword [esp + 0x50]
jae 0x1001803a
lea ecx, [esp + 0x50]
cmp dword [esp + 0x48], esi
mov eax, dword [esp + 0x34]
jae 0x10018048
lea eax, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp dword [esp + 0x48], esi
jb 0x10018063
mov edx, dword [esp + 0x34]
push edx
call fcn.1002b322
add esp, 4
xor eax, eax
cmp dword [esp + 0x64], esi
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], eax
mov word [esp + 0x34], ax
jb 0x10018089
mov eax, dword [esp + 0x50]
push eax
call fcn.1002b322
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x1001809a
push eax
call fcn.1002c6d7
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1002b6af
add esp, 0x64
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
mov eax, dword [esp + 0x34]
mov ebx, 8
cmp dword [esp + 0x48], ebx
jae 0x100180da
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10017ef6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call edi
push esi
call edi
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x10018109
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea esi, [esp + 0x30]
call fcn.10003e00
lea esi, [esp + 0x4c]
call fcn.10003e00
lea esi, [esp + 0x20]
call fcn.1002b1a0
jmp 0x1001809a