Function at 0x4359b5
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x670], 0xffffffff
push ebx
and eax, 1
xor ecx, ecx
push esi
push edi
xor edi, edi
cmp al, 1
mov eax, dword [ebp + 0xc]
sete cl
mov ebx, dword [ebp + 8]
and eax, 2
mov esi, 0x208
push esi
push edi
mov dword [ebp - 0x66c], ebx
mov dword [ebp - 0x67c], ecx
xor ecx, ecx
cmp al, 2
mov eax, dword [ebp + 0xc]
sete cl
and eax, 4
mov dword [ebp - 0x668], edi
mov dword [ebp - 0x680], ecx
xor ecx, ecx
cmp al, 4
sete cl
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x674], ecx
call fcn.004272a0
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004272a0
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x678], eax
mov ebx, 0xffff
mov esi, 0x80070000
cmp eax, 0xffffffff
jne 0x435a8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x435a6a
push 3
pop eax
test eax, eax
jle 0x435a72
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
jns 0x435a8d
push edi
push 0xd0
push str.dirutil.cpp
call fcn.0043166e
jmp 0x435e01
test byte [ebp - 0x678], 0x10
je 0x435de7
test byte [ebp - 0x678], 1
je 0x435ad9
push 0x80
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x435ad9
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435ac6
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435ad1
mov edi, 0x80004005
push edi
push 0xd9
jmp 0x435a7e
xor eax, eax
cmp dword [ebp - 0x67c], eax
jne 0x435aef
cmp dword [ebp - 0x680], eax
je 0x435cfc
cmp dword [ebp - 0x674], eax
je 0x435b31
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x435b31
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435b1b
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435b26
mov edi, 0x80004005
push edi
push 0xe4
jmp 0x435a7e
lea eax, [ebp - 0x668]
push eax
push 0x446360
push dword [ebp - 0x66c]
call fcn.00431352
mov edi, eax
test edi, edi
js 0x435e01
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
jne 0x435b94
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435b7e
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435b89
mov edi, 0x80004005
push edi
push 0xef
jmp 0x435a7e
push 0x2e
pop eax
cmp ax, word [ebp - 0x638]
jne 0x435bca
xor eax, eax
cmp ax, word [ebp - 0x636]
je 0x435cce
push 0x2e
pop eax
cmp ax, word [ebp - 0x636]
jne 0x435bca
xor eax, eax
cmp ax, word [ebp - 0x634]
je 0x435cce
xor eax, eax
mov word [ebp - 0x432], ax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x66c]
call fcn.00431352
mov edi, eax
test edi, edi
js 0x435dec
xor edi, edi
cmp dword [ebp - 0x680], edi
je 0x435c32
test byte [ebp - 0x664], 0x10
je 0x435c32
lea eax, [ebp - 0x668]
push eax
call fcn.0043115c
mov edi, eax
test edi, edi
js 0x435dec
push dword [ebp + 0xc]
push dword [ebp - 0x668]
call fcn.004359b5
jmp 0x435cce
cmp dword [ebp - 0x67c], edi
je 0x435cce
test byte [ebp - 0x664], 7
je 0x435c60
push 0x80
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x435d64
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x435cce
cmp dword [ebp - 0x674], edi
je 0x435da6
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x44fb98
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x435d85
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x668]
call edi
push 4
push 0
test eax, eax
je 0x435cc6
lea eax, [ebp - 0x20c]
push eax
jmp 0x435ccc
push dword [ebp - 0x668]
call edi
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x435b94
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x435dc7
xor edi, edi
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x435dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x435d1e
and eax, ebx
or eax, esi
mov edi, eax
cmp edi, 0x80070020
jne 0x435d47
cmp dword [ebp - 0x674], 0
je 0x435d4f
push 4
push 0
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x435d4f
xor edi, edi
test edi, edi
jns 0x435dec
push edi
push 0x149
push str.dirutil.cpp
call fcn.0043166e
jmp 0x435dec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x435d72
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435d7d
mov edi, 0x80004005
push edi
push 0x113
jmp 0x435d55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x435d93
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435d9e
mov edi, 0x80004005
push edi
push 0x11d
jmp 0x435d55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x435db4
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435dbf
mov edi, 0x80004005
push edi
push 0x12d
jmp 0x435d55
call edi
test eax, eax
jle 0x435dd1
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435ddc
mov edi, 0x80004005
push edi
push 0x13a
jmp 0x435d55
mov edi, 0x8000ffff
cmp dword [ebp - 0x670], 0xffffffff
je 0x435e01
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], 0
je 0x435e15
push dword [ebp - 0x668]
call fcn.0042f657
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042731a
leave
ret 8