Function at 0x44c510
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Set file attributes

Disassembly:
sub esp, 0x670
mov eax, dword [0x48807c]
xor eax, esp
mov dword [esp + 0x66c], eax
push esi
mov esi, dword [esp + 0x678]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
test esi, esi
jne 0x44c552
xor al, al
pop esi
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.00453432
add esp, 0x670
ret 4
cmp word [esi], 0
je 0x44c538
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c560
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x44c538
push esi
push str.KXAPI::RemoveDirectoryAll___s__n
call fcn.004454c0
lea edx, [esp + 0x470]
add esp, 8
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x44c590
lea eax, [esp + 0x468]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x44c5b0
mov ecx, dword [0x46abb0]
mov edx, dword [0x46abb4]
mov dword [eax], ecx
mov cx, word [0x46abb8]
mov dword [eax + 4], edx
push ebx
lea edx, [esp + 0x14]
mov word [eax + 8], cx
push edx
lea eax, [esp + 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov byte [esp + 0xb], 0
test eax, eax
je 0x44c82c
push ebp
lea ebp, [esp + 0x268]
push edi
mov byte [esp + 0x13], 1
sub ebp, esi
mov eax, esi
movzx ecx, word [eax]
mov word [eax + ebp], cx
add eax, 2
test cx, cx
jne 0x44c615
lea edi, [esp + 0x26c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x44c630
mov ecx, dword [0x46ab94]
lea eax, [esp + 0x48]
mov dword [edi], ecx
mov edx, eax
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44c650
lea edi, [esp + 0x26c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x44c670
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x44c670
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x46abac
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44c6bb
test dx, dx
je 0x44c6b7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44c6bb
add eax, 4
add ecx, 4
test dx, dx
jne 0x44c695
xor eax, eax
jmp 0x44c6c0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44c812
mov ecx, 0x46aba4
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x44c6f7
test dx, dx
je 0x44c6f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x44c6f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x44c6d1
xor eax, eax
jmp 0x44c6fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x44c812
test byte [esp + 0x1c], 0x10
je 0x44c798
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x26c]
push edx
mov ecx, esi
call fcn.0044c510
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x44c812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x44c755
push str.KXAPI::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004453d0
add esp, 4
jmp 0x44c812
cmp byte [esi + 5], 0
je 0x44c775
lea ecx, [esp + 0x26c]
push ecx
push str.WIN9X___directory___s__is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004454c0
add esp, 8
jmp 0x44c812
lea edx, [esp + 0x26c]
push edx
push str.WINNT___directory___s__is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004454c0
add esp, 8
push 4
push 0
lea eax, [esp + 0x274]
push eax
jmp 0x44c80c
push 0x80
lea ecx, [esp + 0x270]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x26c]
push edx
call fcn.0044a070
test eax, eax
jne 0x44c812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x44c7da
push str.KXAPI::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004453d0
add esp, 4
jmp 0x44c812
mov eax, dword [esp + 0x14]
cmp byte [eax + 5], 0
je 0x44c7f3
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004453d0
add esp, 4
jmp 0x44c812
push 0x47ebf0
call fcn.004453d0
add esp, 4
push 4
push 0
lea ecx, [esp + 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea edx, [esp + 0x1c]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, dword [esp + 0x18]
test eax, eax
jne 0x44c613
pop edi
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ebx
test eax, eax
jne 0x44c88b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x44c859
push str.KXAPI::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004453d0
add esp, 4
jmp 0x44c88b
mov eax, dword [esp + 8]
cmp byte [eax + 5], 0
push esi
je 0x44c873
push 0x47f3f8
call fcn.004453d0
add esp, 8
jmp 0x44c88b
push 0x473c98
call fcn.004453d0
add esp, 8
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x670]
mov al, byte [esp + 7]
pop esi
xor ecx, esp
call fcn.00453432
add esp, 0x670
ret 4