Function at 0x45b670
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 0x4a486f
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x4c6280]
xor eax, esp
mov dword [esp + 0x4fc], eax
push ebx
push esi
mov eax, dword [0x4c6280]
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.004806d0
mov eax, dword [0x4ca354]
mov ebx, 1
add eax, ebx
add esp, 0xc
cmp eax, 0xa
mov dword [0x4ca354], eax
ja 0x45bbdc
test esi, esi
je 0x45bbdc
push 0x104
lea ecx, [esp + 0x2f8]
push esi
push ecx
call fcn.0048312d
add esp, 0xc
test eax, eax
je 0x45bbdc
lea edx, [esp + 0x2f4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45bbdc
lea ecx, [esp + 0x2f4]
call fcn.0045c7b0
test al, al
je 0x45bbdc
add dword [0x4ca1a4], ebx
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x18]
call fcn.0040ff10
mov esi, eax
push str.Folder
lea ecx, [esp + 0x14]
mov dword [esp + 0x51c], 0
call fcn.0040ff10
mov byte [esp + 0x518], bl
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push 0x4b8720
mov esi, 0x4ca290
call fcn.0045f140
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040fde0
lea ecx, [esp + 0x14]
mov dword [esp + 0x518], 0xffffffff
call fcn.0040fde0
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x54]
call fcn.00421ce0
mov ebx, 2
lea ecx, [esp + 0x50]
mov dword [esp + 0x518], ebx
call fcn.00425e50
push eax
push 0x4b8618
lea ecx, [esp + 0x58]
call fcn.004580a0
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00425e50
sub eax, 1
cmp esi, eax
je 0x45b82b
push 0x4b8618
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.004337f0
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x51c], 3
call fcn.00421dc0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], bl
call fcn.00421d90
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x8c]
call fcn.00421d40
lea ecx, [esp + 0x6c]
call fcn.00421c90
push 0x4b875c
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x524], 5
call fcn.004337f0
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x51c], 6
call fcn.00421dc0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.00421d90
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
call fcn.00421e20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x10], esi
je 0x45bb88
test byte [esp + 0xa4], 0x10
je 0x45b9a8
mov ecx, 0x4b8760
lea eax, [esp + 0xd0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45b8f7
test dx, dx
je 0x45b8f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45b8f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x45b8d1
xor eax, eax
jmp 0x45b8fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45b9fb
mov ecx, 0x4b8764
lea eax, [esp + 0xd0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45b936
test dx, dx
je 0x45b932
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45b936
add eax, 4
add ecx, 4
test dx, dx
jne 0x45b910
xor eax, eax
jmp 0x45b93b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45b9fb
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00421ce0
push eax
lea edx, [esp + 0x54]
push edx
lea esi, [esp + 0x3c]
mov byte [esp + 0x520], 7
call fcn.0045db80
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x51c], 8
call fcn.00421e20
push eax
call fcn.0045b670
add esp, 8
mov ecx, esi
call fcn.00421d90
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.00421d90
mov esi, dword [esp + 0x10]
jmp 0x45b9fb
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004337f0
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 9
call fcn.00421dc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.00421d90
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x70]
call fcn.00421e20
push eax
call fcn.0045b3b0
add esp, 8
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x45bb81
mov bl, 0xb
jmp 0x45ba20
test byte [esp + 0xa4], 0x10
je 0x45bb17
mov ecx, 0x4b8760
lea eax, [esp + 0xd0]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45ba66
test dx, dx
je 0x45ba62
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45ba66
add eax, 4
add ecx, 4
test dx, dx
jne 0x45ba40
xor eax, eax
jmp 0x45ba6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bb6a
mov ecx, 0x4b8764
lea eax, [esp + 0xd0]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45baa6
test dx, dx
je 0x45baa2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45baa6
add eax, 4
add ecx, 4
test dx, dx
jne 0x45ba80
xor eax, eax
jmp 0x45baab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bb6a
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x38]
call fcn.00421ce0
push eax
lea edx, [esp + 0x54]
push edx
lea esi, [esp + 0x20]
mov byte [esp + 0x520], 0xa
call fcn.0045db80
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, eax
mov byte [esp + 0x51c], bl
call fcn.00421e20
push eax
call fcn.0045b670
add esp, 8
mov ecx, esi
call fcn.00421d90
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.00421d90
mov esi, dword [esp + 0x10]
jmp 0x45bb6a
lea edx, [esp + 0xd0]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.004337f0
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 0xc
call fcn.00421dc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.00421d90
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [esp + 0x70]
call fcn.00421e20
push eax
call fcn.0045b3b0
add esp, 8
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x45ba20
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 0x45bbb0
cmp dword [ebp + 0xc], eax
je 0x45bbb0
push 4
push eax
lea edx, [esp + 0x2fc]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub dword [0x4ca354], 1
lea ecx, [esp + 0x6c]
call fcn.00421d90
lea ecx, [esp + 0x88]
call fcn.00421d90
lea ecx, [esp + 0x50]
call fcn.00421d90
mov eax, 1
jmp 0x45bbe4
sub dword [0x4ca354], 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.0047f404
mov esp, ebp
pop ebp
ret