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

Disassembly:
push 0x2b4
mov eax, 0x51a2ab
call fcn.004b9729
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x264]
mov esi, dword [ebp + 8]
xor edi, edi
push ecx
push eax
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x27c], esi
xor ebx, ebx
mov dword [ebp - 0x284], eax
push str.v6t6hbBvmAiioQh0sjqXCx5i_kepOJfwjEQHmACEToyBjs5IQAYIwwcYBUIESNzfyQmHm0DICIOc205cAQ9DgpgNGAuEB0jCDcyMzR7CD8PHxgnFhVkJjIWcSwAFA4XZCczZj8cHwYJBzkBA2wlNR0hYxYlBj48FWwFABU8fiBtCRQiFmYuDCoUHwcZGhsUKAg7NWRjA3g9Oj0MBhEOEC02DgAYNwc6O2wAJB0uGR0tFAZiLwwCNm0gNwkLPhsJLQs_LXkqBR45GT8wKjYZd2YWASQjESg1FQcbOS8nID4sBAE2DS4AYCYGITxxEyIEMh40LwofKQQDFQMsEDw8F3o2PxkoBD4eJj0aC2IWKi9hDQFrARkzFC8fYmtpBRYyLWIWAwRuATZ7Jh5sGBYKEBcRHhgRJGkqHiVoHHsRGREjCxpiM2F5ezAEdjgxcR0SAAABNAOKZDlpnM94VUjmHb6y
mov dword [ebp - 0x14], ebx
call fcn.00466d59
lea eax, [ebp - 0x29c]
push eax
call fcn.0048626d
pop ecx
pop ecx
and dword [ebp - 4], edi
mov ecx, eax
call fcn.0046929c
push eax
lea eax, [ebp - 0x278]
push esi
push eax
call fcn.0046fd8a
add esp, 0xc
push eax
xor ecx, ecx
lea eax, [ebp - 0x290]
inc ecx
push eax
mov byte [ebp - 4], cl
call fcn.0046fd8a
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x274], eax
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x29c]
call fcn.004690f8
cmp dword [ebp - 0x274], 0xffffffff
je 0x486852
test byte [ebp - 0x264], 0x10
lea eax, [ebp - 0x238]
push eax
je 0x486750
and dword [ebp - 0x270], 0
lea ecx, [ebp - 0x270]
call fcn.00466d59
push 0
push ecx
mov ecx, esp
mov dword [ebp - 4], 2
push str.Jl9_GriUPKDMDVEgzoLpOujKOUYdHSwrs98bAQBEQNqe2w6PmYjJxI4FQY4PAh3E2A5FwZ6NCo4O2UPHjQ0cBEwO2gEB58EiMhDH4JIQcBTUQHg8YOzAlHTI3MCwnIjgJIg8eFh4zNxQUMyUsDTA0BA8Bbz89dhgcHSI8NDMsMwUYiENCYiAwQGGjwxJwEFIDQScwwwESEqBGJ3PjN3YR8cFzQwAiR_OS4YKyMHJAoZCjEeJjMaYTU8OWx3EBgtIyECKjolGgE7KhJkGGVgfiE7BBU5PyYqETIuAAAAwgdlY53YfbV0VsnoLEJ9
call fcn.00466d59
lea eax, [ebp - 0x2b4]
push eax
call fcn.0048626d
pop ecx
pop ecx
xor ecx, ecx
mov byte [ebp - 4], 3
inc ecx
or ebx, ecx
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.0046929c
push eax
lea ecx, [ebp - 0x270]
call fcn.00470992
test eax, eax
je 0x486664
push 0
push ecx
mov ecx, esp
push str.CdtoNO9UXzvPFV7VgOoYAeLoQo10UJ8oGN1bHtkLjYVFQkWKT1vBi0bYzQ2MgcAZCEkMTpmFQMkNmBnAT8UODIUIRMAAAAn1CzhlMJzR89knaA48V
call fcn.00466d59
lea eax, [ebp - 0x2c0]
push eax
call fcn.0048626d
pop ecx
pop ecx
or ebx, 2
mov dword [ebp - 4], 4
mov ecx, eax
mov dword [ebp - 0x14], ebx
call fcn.0046929c
push eax
lea ecx, [ebp - 0x270]
call fcn.00470992
test eax, eax
je 0x486664
xor eax, eax
inc eax
mov byte [ebp - 0x265], al
jmp 0x48666b
mov byte [ebp - 0x265], 0
test bl, 2
je 0x48667e
lea ecx, [ebp - 0x2c0]
and ebx, 0xfffffffd
call fcn.004690f8
mov dword [ebp - 4], 2
test bl, 1
je 0x486698
lea ecx, [ebp - 0x2b4]
and ebx, 0xfffffffe
call fcn.004690f8
cmp byte [ebp - 0x265], 0
je 0x486741
and dword [ebp - 0x14], 0
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x14]
call fcn.00466c6a
mov esi, dword [esi]
lea ecx, [ebp - 0x14]
push 0x104
mov byte [ebp - 4], 5
call fcn.004688f2
lea ecx, [ebp - 0x238]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.004744de
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp - 0x284]
push eax
call fcn.004864e8
add esp, 0xc
test eax, eax
push 1
pop eax
push dword [ebp - 0x14]
cmovne edi, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x486730
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x486730
cmp dword [ebp + 0x10], eax
je 0x48672b
push 4
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov esi, dword [ebp - 0x27c]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x270]
jmp 0x486812
and dword [ebp - 0x26c], 0
push 0
push ecx
mov ecx, esp
push str.6A6DlUoLu3DyQFdi2PNCAmp5xFMGXI1kmRzHmwsJTYQGABCgoPYjsYEzIUazoFAhcdMz4UHmYTcGMgCxYYASoRZQoJPh99biAJFjsvLBJxIA0HNB4qJSAEAAAAPgK693L_ZRxgDlOOvE1A
call fcn.00466d59
lea eax, [ebp - 0x2a8]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 4], 6
call fcn.0046929c
push eax
lea eax, [ebp - 0x280]
push esi
push eax
call fcn.0046fd8a
add esp, 0xc
push eax
lea eax, [ebp - 0x28c]
mov byte [ebp - 4], 7
push eax
call fcn.0046fd8a
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 8
call fcn.00466d59
mov ecx, dword [ebp - 0x28c]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x280]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2a8]
call fcn.004690f8
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48680c
cmp dword [ebp + 0x10], eax
je 0x486807
push 4
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
lea edi, [eax + 1]
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.0040ce73
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x274]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4865ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
pop ebx
push dword [ebp - 0x274]
cmp eax, 0x12
cmovne edi, ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x486855
xor ebx, ebx
inc ebx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x48687f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x48687f
cmp dword [ebp + 0x10], eax
je 0x48687d
push 4
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edi, ebx
mov eax, edi
call fcn.004b96d8
ret