Function at 0x435b68
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:
mov edi, edi
push ebp
lea ebp, [esp - 0x600]
sub esp, 0x680
mov eax, dword [0x4509f8]
xor eax, ebp
mov dword [ebp + 0x5fc], eax
mov eax, dword [ebp + 0x60c]
or dword [ebp - 0x70], 0xffffffff
push ebx
and eax, 1
xor ecx, ecx
push esi
push edi
xor edi, edi
cmp al, 1
mov eax, dword [ebp + 0x60c]
sete cl
mov ebx, dword [ebp + 0x608]
and eax, 2
mov esi, 0x208
push esi
push edi
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x7c], ecx
xor ecx, ecx
cmp al, 2
mov eax, dword [ebp + 0x60c]
sete cl
and eax, 4
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x80], ecx
xor ecx, ecx
cmp al, 4
sete cl
lea eax, [ebp + 0x1ec]
push eax
mov dword [ebp - 0x74], ecx
call fcn.00408720
push esi
lea eax, [ebp + 0x3f4]
push edi
push eax
call fcn.00408720
add esp, 0x18
push ebx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov dword [ebp - 0x78], eax
mov ebx, 0xffff
mov esi, 0x80070000
cmp eax, 0xffffffff
jne 0x435c41
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x435c1e
push 3
pop eax
test eax, eax
jle 0x435c26
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
jns 0x435c41
push edi
push 0xd0
push 0x44d0ec
call fcn.0043180e
jmp 0x435f48
test byte [ebp - 0x78], 0x10
je 0x435f34
test byte [ebp - 0x78], 1
je 0x435c84
push 0x80
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
jne 0x435c84
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x435c71
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435c7c
mov edi, 0x80004005
push edi
push 0xd9
jmp 0x435c32
xor eax, eax
cmp dword [ebp - 0x7c], eax
jne 0x435c94
cmp dword [ebp - 0x80], eax
je 0x435e52
cmp dword [ebp - 0x74], eax
je 0x435cd3
lea eax, [ebp + 0x1ec]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
jne 0x435cd3
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x435cbd
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435cc8
mov edi, 0x80004005
push edi
push 0xe4
jmp 0x435c32
lea eax, [ebp - 0x68]
push eax
push 0x4470ba
push dword [ebp - 0x6c]
call main
mov edi, eax
test edi, edi
js 0x435f48
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x70], eax
cmp eax, 0xffffffff
jne 0x435d27
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x435d11
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435d1c
mov edi, 0x80004005
push edi
push 0xef
jmp 0x435c32
push 0x2e
pop eax
cmp ax, word [ebp - 0x38]
jne 0x435d51
xor eax, eax
cmp ax, word [ebp - 0x36]
je 0x435e2a
push 0x2e
pop eax
cmp ax, word [ebp - 0x36]
jne 0x435d51
xor eax, eax
cmp ax, word [ebp - 0x34]
je 0x435e2a
xor eax, eax
mov word [ebp + 0x1ce], ax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x6c]
call main
mov edi, eax
test edi, edi
js 0x435f39
xor edi, edi
cmp dword [ebp - 0x80], edi
je 0x435da7
test byte [ebp - 0x64], 0x10
je 0x435da7
lea eax, [ebp - 0x68]
push eax
call main
mov edi, eax
test edi, edi
js 0x435f39
push dword [ebp + 0x60c]
push dword [ebp - 0x68]
call fcn.00435b68
jmp 0x435e2a
cmp dword [ebp - 0x7c], edi
je 0x435e2a
test byte [ebp - 0x64], 7
je 0x435dc8
push 0x80
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x435eb1
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x435e2a
cmp dword [ebp - 0x74], edi
je 0x435ef3
lea eax, [ebp + 0x3f4]
push eax
push edi
push 0x44d11e
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x435ed2
mov edi, dword [sym.imp.kernel32.dll_MoveFileExW]
push 1
lea eax, [ebp + 0x3f4]
push eax
push dword [ebp - 0x68]
call edi
push 4
push 0
test eax, eax
je 0x435e25
lea eax, [ebp + 0x3f4]
push eax
jmp 0x435e28
push dword [ebp - 0x68]
call edi
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x70]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x435d27
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x435f14
xor edi, edi
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x435f39
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x435e71
and eax, ebx
or eax, esi
mov edi, eax
cmp edi, 0x80070020
jne 0x435e94
cmp dword [ebp - 0x74], 0
je 0x435e9c
push 4
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x435e9c
xor edi, edi
test edi, edi
jns 0x435f39
push edi
push 0x149
push 0x44d0ec
call fcn.0043180e
jmp 0x435f39
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x435ebf
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435eca
mov edi, 0x80004005
push edi
push 0x113
jmp 0x435ea2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x435ee0
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435eeb
mov edi, 0x80004005
push edi
push 0x11d
jmp 0x435ea2
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x435f01
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435f0c
mov edi, 0x80004005
push edi
push 0x12d
jmp 0x435ea2
call edi
test eax, eax
jle 0x435f1e
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435f29
mov edi, 0x80004005
push edi
push 0x13a
jmp 0x435ea2
mov edi, 0x8000ffff
cmp dword [ebp - 0x70], 0xffffffff
je 0x435f48
push dword [ebp - 0x70]
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x68], 0
je 0x435f56
push dword [ebp - 0x68]
call fcn.0042ee18
mov ecx, dword [ebp + 0x5fc]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x600
leave
ret 8