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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aa80f
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x4cd290]
xor eax, esp
mov dword [esp + 0x4fc], eax
push ebx
push esi
mov eax, dword [0x4cd290]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x208
lea eax, [esp + 0x2fa]
push 0
push eax
mov word [esp + 0x300], 0
call fcn.004863a0
mov eax, dword [0x4d15d0]
mov ebx, 1
add eax, ebx
add esp, 0xc
cmp eax, 0xa
mov dword [0x4d15d0], eax
ja 0x47ebec
test esi, esi
je 0x47ebec
push 0x104
lea ecx, [esp + 0x2f8]
push esi
push ecx
call fcn.00486dcb
add esp, 0xc
test eax, eax
je 0x47ebec
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea edx, [esp + 0x2f4]
push edx
call esi
lea ecx, [esp + 0x2f4]
call fcn.0047f690
lea eax, [esp + 0x2f4]
push eax
call esi
test eax, eax
je 0x47ebec
lea ecx, [esp + 0x2f4]
call fcn.0047f690
test al, al
je 0x47ebec
add dword [0x4d1454], ebx
lea ecx, [esp + 0x2f4]
push ecx
lea ecx, [esp + 0x18]
call fcn.0040f390
mov esi, eax
push str.Folder
lea ecx, [esp + 0x14]
mov dword [esp + 0x51c], 0
call fcn.0040f390
mov byte [esp + 0x518], bl
mov edx, dword [esi]
mov eax, dword [eax]
push edx
push eax
push 0x4bfa08
mov esi, 0x4d1508
call fcn.00481e10
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040f420
lea ecx, [esp + 0x14]
mov dword [esp + 0x518], 0xffffffff
call fcn.0040f420
lea ecx, [esp + 0x2f4]
push ecx
lea ecx, [esp + 0x54]
call fcn.00420640
mov ebx, 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x518], ebx
call fcn.0040fae0
push eax
push 0x4bed2c
lea ecx, [esp + 0x58]
call fcn.00455be0
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.0040fae0
sub eax, 1
cmp esi, eax
je 0x47e833
push 0x4bed2c
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.00455ce0
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x51c], 3
call fcn.00420720
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], bl
call fcn.004206f0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x8c]
call fcn.004206a0
lea ecx, [esp + 0x6c]
call fcn.004205f0
push 0x4bf5b0
lea edx, [esp + 0x8c]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x524], 5
call fcn.00455ce0
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x51c], 6
call fcn.00420720
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.004206f0
lea ecx, [esp + 0xa4]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00420780
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x47eb98
test byte [esp + 0xa4], 0x10
je 0x47e9b8
mov ecx, 0x4bf0a8
lea eax, [esp + 0xd0]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47e906
test dx, dx
je 0x47e902
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47e906
add eax, 4
add ecx, 4
test dx, dx
jne 0x47e8e0
xor eax, eax
jmp 0x47e90b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47ea0b
mov ecx, 0x4bf0ac
lea eax, [esp + 0xd0]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47e946
test dx, dx
je 0x47e942
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47e946
add eax, 4
add ecx, 4
test dx, dx
jne 0x47e920
xor eax, eax
jmp 0x47e94b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47ea0b
lea edx, [esp + 0xd0]
push edx
lea ecx, [esp + 0x1c]
call fcn.00420640
push eax
lea eax, [esp + 0x54]
push eax
lea esi, [esp + 0x3c]
mov byte [esp + 0x520], 7
call fcn.00477cd0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x51c], 8
call fcn.00420780
push eax
call fcn.0047e660
add esp, 8
mov ecx, esi
call fcn.004206f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.004206f0
mov esi, dword [esp + 0x10]
jmp 0x47ea0b
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00455ce0
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 9
call fcn.00420720
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.004206f0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x70]
call fcn.00420780
push eax
call fcn.0047e3a0
add esp, 8
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47eb91
mov bl, 0xb
jmp 0x47ea30
test byte [esp + 0xa4], 0x10
je 0x47eb27
mov ecx, 0x4bf0a8
lea eax, [esp + 0xd0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47ea76
test dx, dx
je 0x47ea72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47ea76
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ea50
xor eax, eax
jmp 0x47ea7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47eb7a
mov ecx, 0x4bf0ac
lea eax, [esp + 0xd0]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47eab6
test dx, dx
je 0x47eab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47eab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x47ea90
xor eax, eax
jmp 0x47eabb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x47eb7a
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x38]
call fcn.00420640
push eax
lea edx, [esp + 0x54]
push edx
lea esi, [esp + 0x20]
mov byte [esp + 0x520], 0xa
call fcn.00477cd0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x51c], bl
call fcn.00420780
push eax
call fcn.0047e660
add esp, 8
mov ecx, esi
call fcn.004206f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.004206f0
mov esi, dword [esp + 0x10]
jmp 0x47eb7a
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00455ce0
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 0xc
call fcn.00420720
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.004206f0
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x70]
call fcn.00420780
push eax
call fcn.0047e3a0
add esp, 8
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x47ea30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x2f4]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47ebc0
cmp dword [ebp + 0xc], eax
je 0x47ebc0
push 4
push eax
lea edx, [esp + 0x2fc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub dword [0x4d15d0], 1
lea ecx, [esp + 0x6c]
call fcn.004206f0
lea ecx, [esp + 0x88]
call fcn.004206f0
lea ecx, [esp + 0x50]
call fcn.004206f0
mov eax, 1
jmp 0x47ebf4
sub dword [0x4d15d0], ebx
xor eax, eax
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x4fc]
xor ecx, esp
call fcn.004851ae
mov esp, ebp
pop ebp
ret