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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x680
mov eax, dword [0x456130]
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.004284a0
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004284a0
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 0x436ded
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x436dca
push 3
pop eax
test eax, eax
jle 0x436dd2
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
jns 0x436ded
push edi
push 0xd0
push str.dirutil.cpp
call fcn.00432f68
jmp 0x437161
test byte [ebp - 0x678], 0x10
je 0x437147
test byte [ebp - 0x678], 1
je 0x436e39
push 0x80
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x436e39
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436e26
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x436e31
mov edi, 0x80004005
push edi
push 0xd9
jmp 0x436dde
xor eax, eax
cmp dword [ebp - 0x67c], eax
jne 0x436e4f
cmp dword [ebp - 0x680], eax
je 0x43705c
cmp dword [ebp - 0x674], eax
je 0x436e91
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x436e91
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436e7b
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x436e86
mov edi, 0x80004005
push edi
push 0xe4
jmp 0x436dde
lea eax, [ebp - 0x668]
push eax
push 0x448b38
push dword [ebp - 0x66c]
call fcn.00432639
mov edi, eax
test edi, edi
js 0x437161
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 0x436ef4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x436ede
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x436ee9
mov edi, 0x80004005
push edi
push 0xef
jmp 0x436dde
push 0x2e
pop eax
cmp ax, word [ebp - 0x638]
jne 0x436f2a
xor eax, eax
cmp ax, word [ebp - 0x636]
je 0x43702e
push 0x2e
pop eax
cmp ax, word [ebp - 0x636]
jne 0x436f2a
xor eax, eax
cmp ax, word [ebp - 0x634]
je 0x43702e
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.00432639
mov edi, eax
test edi, edi
js 0x43714c
xor edi, edi
cmp dword [ebp - 0x680], edi
je 0x436f92
test byte [ebp - 0x664], 0x10
je 0x436f92
lea eax, [ebp - 0x668]
push eax
call fcn.00432443
mov edi, eax
test edi, edi
js 0x43714c
push dword [ebp + 0xc]
push dword [ebp - 0x668]
call fcn.00436d15
jmp 0x43702e
cmp dword [ebp - 0x67c], edi
je 0x43702e
test byte [ebp - 0x664], 7
je 0x436fc0
push 0x80
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4370c4
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43702e
cmp dword [ebp - 0x674], edi
je 0x437106
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x452690
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4370e5
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 0x437026
lea eax, [ebp - 0x20c]
push eax
jmp 0x43702c
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 0x436ef4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x437127
xor edi, edi
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43714c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x43707e
and eax, ebx
or eax, esi
mov edi, eax
cmp edi, 0x80070020
jne 0x4370a7
cmp dword [ebp - 0x674], 0
je 0x4370af
push 4
push 0
push dword [ebp - 0x66c]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4370af
xor edi, edi
test edi, edi
jns 0x43714c
push edi
push 0x149
push str.dirutil.cpp
call fcn.00432f68
jmp 0x43714c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4370d2
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x4370dd
mov edi, 0x80004005
push edi
push 0x113
jmp 0x4370b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4370f3
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x4370fe
mov edi, 0x80004005
push edi
push 0x11d
jmp 0x4370b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x437114
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x43711f
mov edi, 0x80004005
push edi
push 0x12d
jmp 0x4370b5
call edi
test eax, eax
jle 0x437131
and eax, ebx
or eax, esi
mov edi, eax
test edi, edi
js 0x43713c
mov edi, 0x80004005
push edi
push 0x13a
jmp 0x4370b5
mov edi, 0x8000ffff
cmp dword [ebp - 0x670], 0xffffffff
je 0x437161
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x668], 0
je 0x437175
push dword [ebp - 0x668]
call fcn.00430858
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042851a
leave
ret 8