Function at 0x448310
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 [0x47f038]
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 0x448352
xor al, al
pop esi
mov ecx, dword [esp + 0x66c]
xor ecx, esp
call fcn.0044e1a0
add esp, 0x670
ret 4
cmp word [esi], 0
je 0x448338
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x448360
sub eax, edx
sar eax, 1
cmp eax, 4
jb 0x448338
push esi
push str.KXAPI::RemoveDirectoryAll___s__n
call fcn.004412c0
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 0x448390
lea eax, [esp + 0x468]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4483b0
mov ecx, dword [0x464ae8]
mov edx, dword [0x464aec]
mov dword [eax], ecx
mov cx, word [0x464af0]
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 0x44862c
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 0x448415
lea edi, [esp + 0x26c]
add edi, 0xfffffffe
mov edi, edi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x448430
mov ecx, dword [0x464acc]
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 0x448450
lea edi, [esp + 0x26c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x448470
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x448470
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, 0x464ae4
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4484bb
test dx, dx
je 0x4484b7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4484bb
add eax, 4
add ecx, 4
test dx, dx
jne 0x448495
xor eax, eax
jmp 0x4484c0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x448612
mov ecx, 0x464adc
lea eax, [esp + 0x48]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4484f7
test dx, dx
je 0x4484f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4484f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4484d1
xor eax, eax
jmp 0x4484fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x448612
test byte [esp + 0x1c], 0x10
je 0x448598
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x26c]
push edx
mov ecx, esi
call fcn.00448310
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x448612
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x448555
push str.KXAPI::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004411d0
add esp, 4
jmp 0x448612
cmp byte [esi + 5], 0
je 0x448575
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.004412c0
add esp, 8
jmp 0x448612
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.004412c0
add esp, 8
push 4
push 0
lea eax, [esp + 0x274]
push eax
jmp 0x44860c
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.00445e70
test eax, eax
jne 0x448612
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4485da
push str.KXAPI::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004411d0
add esp, 4
jmp 0x448612
mov eax, dword [esp + 0x14]
cmp byte [eax + 5], 0
je 0x4485f3
push str.WIN9X___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004411d0
add esp, 4
jmp 0x448612
push str.WINNT___file_is_in_use__set_the_flag_to_delete_it_when_system_reboot_n
call fcn.004411d0
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 0x448413
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 0x44868b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x448659
push str.KXAPI::RemoveDirectoryAll___ERROR_FILE_NOT_FOUND_n
call fcn.004411d0
add esp, 4
jmp 0x44868b
mov eax, dword [esp + 8]
cmp byte [eax + 5], 0
push esi
je 0x448673
push 0x476ad8
call fcn.004411d0
add esp, 8
jmp 0x44868b
push 0x476a88
call fcn.004411d0
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.0044e1a0
add esp, 0x670
ret 4