Function at 0x43582a
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 [0x44f9f8]
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 0x435903
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 2
jne 0x4358e0
push 3
pop eax
test eax, eax
jle 0x4358e8
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
jns 0x435903
push edi
push 0xd0
push 0x44caba
call fcn.004314ce
jmp 0x435c0a
test byte [ebp - 0x78], 0x10
je 0x435bf6
test byte [ebp - 0x78], 1
je 0x435946
push 0x80
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
jne 0x435946
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x435933
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x43593e
mov edi, 0x80004005
push edi
push 0xd9
jmp 0x4358f4
xor eax, eax
cmp dword [ebp - 0x7c], eax
jne 0x435956
cmp dword [ebp - 0x80], eax
je 0x435b14
cmp dword [ebp - 0x74], eax
je 0x435995
lea eax, [ebp + 0x1ec]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
test eax, eax
jne 0x435995
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x43597f
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x43598a
mov edi, 0x80004005
push edi
push 0xe4
jmp 0x4358f4
lea eax, [ebp - 0x68]
push eax
push 0x446a88
push dword [ebp - 0x6c]
call main
mov edi, eax
test edi, edi
js 0x435c0a
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 0x4359e9
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x4359d3
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x4359de
mov edi, 0x80004005
push edi
push 0xef
jmp 0x4358f4
push 0x2e
pop eax
cmp ax, word [ebp - 0x38]
jne 0x435a13
xor eax, eax
cmp ax, word [ebp - 0x36]
je 0x435aec
push 0x2e
pop eax
cmp ax, word [ebp - 0x36]
jne 0x435a13
xor eax, eax
cmp ax, word [ebp - 0x34]
je 0x435aec
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 0x435bfb
xor edi, edi
cmp dword [ebp - 0x80], edi
je 0x435a69
test byte [ebp - 0x64], 0x10
je 0x435a69
lea eax, [ebp - 0x68]
push eax
call main
mov edi, eax
test edi, edi
js 0x435bfb
push dword [ebp + 0x60c]
push dword [ebp - 0x68]
call fcn.0043582a
jmp 0x435aec
cmp dword [ebp - 0x7c], edi
je 0x435aec
test byte [ebp - 0x64], 7
je 0x435a8a
push 0x80
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
je 0x435b73
push dword [ebp - 0x68]
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x435aec
cmp dword [ebp - 0x74], edi
je 0x435bb5
lea eax, [ebp + 0x3f4]
push eax
push edi
push 0x44caec
lea eax, [ebp + 0x1ec]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
test eax, eax
je 0x435b94
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 0x435ae7
lea eax, [ebp + 0x3f4]
push eax
jmp 0x435aea
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 0x4359e9
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x435bd6
xor edi, edi
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x435bfb
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x435b33
and eax, ebx
or eax, esi
mov edi, eax
cmp edi, 0x80070020
jne 0x435b56
cmp dword [ebp - 0x74], 0
je 0x435b5e
push 4
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.kernel32.dll_MoveFileExW]
test eax, eax
je 0x435b5e
xor edi, edi
test edi, edi
jns 0x435bfb
push edi
push 0x149
push 0x44caba
call fcn.004314ce
jmp 0x435bfb
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x435b81
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435b8c
mov edi, 0x80004005
push edi
push 0x113
jmp 0x435b64
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x435ba2
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435bad
mov edi, 0x80004005
push edi
push 0x11d
jmp 0x435b64
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, edi
jle 0x435bc3
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435bce
mov edi, 0x80004005
push edi
push 0x12d
jmp 0x435b64
call edi
test eax, eax
jle 0x435be0
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x435beb
mov edi, 0x80004005
push edi
push 0x13a
jmp 0x435b64
mov edi, 0x8000ffff
cmp dword [ebp - 0x70], 0xffffffff
je 0x435c0a
push dword [ebp - 0x70]
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x68], 0
je 0x435c18
push dword [ebp - 0x68]
call fcn.0042ead8
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