Function at 0x45b8c0
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 0x49798f
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x4b62b0]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x4b62b0]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor edi, edi
push 0x208
lea eax, [esp + 0x2fa]
push edi
push eax
mov word [esp + 0x300], di
call fcn.00472c50
mov eax, dword [0x4ba5bc]
mov ebx, 1
add eax, ebx
add esp, 0xc
cmp eax, 0xa
mov dword [0x4ba5bc], eax
ja 0x45be8a
cmp esi, edi
je 0x45be8a
push 0x104
lea ecx, [esp + 0x2f8]
push esi
push ecx
call fcn.00477aeb
add esp, 0xc
test eax, eax
je 0x45be8a
lea edx, [esp + 0x2f4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45be8a
lea esi, [esp + 0x2f4]
call fcn.0045c4e0
test al, al
je 0x45be8a
add dword [0x4ba3e4], ebx
mov eax, esi
push eax
lea ecx, [esp + 0x18]
call fcn.00402310
mov esi, eax
push str.Folder
lea ecx, [esp + 0x14]
mov dword [esp + 0x51c], edi
call fcn.00402310
mov byte [esp + 0x518], bl
mov ecx, dword [esi]
mov edx, dword [eax]
push ecx
push edx
push 0x4a8ea0
mov esi, 0x4ba4f8
call fcn.00458e60
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.004023a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x518], 0xffffffff
call fcn.004023a0
lea eax, [esp + 0x2f4]
push eax
lea ecx, [esp + 0x54]
call fcn.0041b8e0
lea ecx, [esp + 0x50]
mov dword [esp + 0x518], 2
call fcn.00432120
push 0x4a7bdc
mov esi, eax
call fcn.00401570
add esp, 4
cmp eax, edi
jbe 0x45ba45
mov ebx, eax
push 0x4a7bdc
mov eax, esi
lea edi, [esp + 0x54]
call fcn.0045ca90
mov esi, eax
mov ebx, 1
jmp 0x45ba48
or esi, 0xffffffff
lea ecx, [esp + 0x50]
call fcn.00432120
sub eax, ebx
cmp esi, eax
je 0x45ba91
push 0x4a7bdc
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.00444010
add esp, 0xc
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x51c], 3
call fcn.0041b9c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 2
call fcn.0041b990
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x8c]
call fcn.0041b940
lea ecx, [esp + 0x6c]
call fcn.0041b890
push 0x4a8edc
lea ecx, [esp + 0x8c]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x524], 5
call fcn.00444010
add esp, 0xc
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x51c], 6
call fcn.0041b9c0
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.0041b990
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0x8c]
call fcn.0041ba20
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x45bdde
test byte [esp + 0xa4], 0x10
je 0x45bc0d
mov ecx, 0x4a8ee0
lea eax, [esp + 0xd0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45bb5d
test dx, dx
je 0x45bb59
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45bb5d
add eax, 4
add ecx, 4
test dx, dx
jne 0x45bb37
xor eax, eax
jmp 0x45bb62
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bc60
mov ecx, 0x4a8ee4
lea eax, [esp + 0xd0]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45bb9c
test dx, dx
je 0x45bb98
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45bb9c
add eax, 4
add ecx, 4
test dx, dx
jne 0x45bb76
xor eax, eax
jmp 0x45bba1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bc60
lea ecx, [esp + 0xd0]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0041b8e0
push eax
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0x524], 7
call fcn.00430220
add esp, 0xc
mov esi, dword [ebp + 0xc]
push esi
mov ecx, eax
mov byte [esp + 0x51c], 8
call fcn.0041ba20
push eax
call fcn.0045b8c0
add esp, 8
lea ecx, [esp + 0x34]
call fcn.0041b990
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.0041b990
jmp 0x45bc63
lea ecx, [esp + 0xd0]
push ecx
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00444010
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 9
call fcn.0041b9c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.0041b990
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [esp + 0x70]
call fcn.0041ba20
push eax
call fcn.0045b610
add esp, 8
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0xa4]
push edx
push ebx
call edi
test eax, eax
je 0x45bdd7
mov bl, 0xb
mov edi, edi
test byte [esp + 0xa4], 0x10
lea eax, [esp + 0xd0]
je 0x45bd73
mov ecx, 0x4a8ee0
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45bcc6
test dx, dx
je 0x45bcc2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45bcc6
add eax, 4
add ecx, 4
test dx, dx
jne 0x45bca0
xor eax, eax
jmp 0x45bccb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bdbc
mov ecx, 0x4a8ee4
lea eax, [esp + 0xd0]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x45bd06
test dx, dx
je 0x45bd02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x45bd06
add eax, 4
add ecx, 4
test dx, dx
jne 0x45bce0
xor eax, eax
jmp 0x45bd0b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x45bdbc
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x38]
call fcn.0041b8e0
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20]
push edx
mov byte [esp + 0x524], 0xa
call fcn.00430220
add esp, 0xc
push esi
mov ecx, eax
mov byte [esp + 0x51c], bl
call fcn.0041ba20
push eax
call fcn.0045b8c0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.0041b990
lea ecx, [esp + 0x34]
mov byte [esp + 0x518], 5
call fcn.0041b990
jmp 0x45bdbc
push eax
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00444010
add esp, 0xc
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x51c], 0xc
call fcn.0041b9c0
lea ecx, [esp + 0x18]
mov byte [esp + 0x518], 5
call fcn.0041b990
push esi
lea ecx, [esp + 0x70]
call fcn.0041ba20
push eax
call fcn.0045b610
add esp, 8
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
push ecx
call edi
test eax, eax
jne 0x45bc80
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push eax
push str.removedirectory_get_last_error:__d
mov esi, 0x4ba4f8
call fcn.00458e60
add esp, 8
lea edx, [esp + 0x2f4]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
call edi
push eax
push str.removedirectory_get_last_error:__d
call fcn.00458e60
lea eax, [esp + 0x2fc]
push eax
push str.removedirectory:__s
call fcn.00458e60
push 1
push str.removedirectory_return:__d
call fcn.00458e60
mov edi, dword [ebp + 0xc]
push edi
push str.bReboot:__d
call fcn.00458e60
add esp, 0x20
test ebx, ebx
jne 0x45be5e
test edi, edi
je 0x45be5e
push 4
push ebx
lea ecx, [esp + 0x2fc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
sub dword [0x4ba5bc], 1
lea ecx, [esp + 0x6c]
call fcn.0041b990
lea ecx, [esp + 0x88]
call fcn.0041b990
lea ecx, [esp + 0x50]
call fcn.0041b990
mov eax, 1
jmp 0x45be92
sub dword [0x4ba5bc], ebx
xor eax, eax
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.00472710
mov esp, ebp
pop ebp
ret