Function at 0x1025d00
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
mov ebp, esp
push 0xffffffffffffffff
push 0x1057a69
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xab0
mov eax, dword [0x106406c]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x475], 1
lea ecx, [ebp - 0x47c]
call fcn.01010c62
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c62
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c62
mov byte [ebp - 4], 2
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0xffffffff
jne 0x1025db9
mov byte [ebp - 0xaad], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.01010c92
mov al, byte [ebp - 0xaad]
jmp 0x1026286
mov eax, dword [ebp - 0x268]
and eax, 0x10
jne 0x1025e03
mov byte [ebp - 0xaae], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.01010c92
mov al, byte [ebp - 0xaae]
jmp 0x1026286
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x688]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.01025540
movzx ecx, al
test ecx, ecx
je 0x1025e84
lea ecx, [ebp - 0x688]
call fcn.01010a73
movzx edx, al
test edx, edx
jne 0x1025e84
lea eax, [ebp - 0x894]
push eax
push 0
push 0x1006b4c
lea ecx, [ebp - 0x688]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1025e84
push 1
lea ecx, [ebp - 0x894]
push ecx
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1025e84
lea edx, [ebp - 0x894]
push edx
lea ecx, [ebp - 0x47c]
call fcn.010115c1
jmp 0x1025e98
mov ecx, dword [ebp + 8]
call fcn.010107dc
push eax
lea ecx, [ebp - 0x47c]
call fcn.010115c1
mov eax, dword [ebp - 0x268]
and eax, 0x400
je 0x1025f5d
mov dword [ebp - 0x8a0], 0xffffffff
push 0
push 0x6200000
push 3
push 0
push 7
push 0x10000
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8a0], eax
cmp dword [ebp - 0x8a0], 0xffffffff
je 0x1025efc
mov ecx, dword [ebp - 0x8a0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x475], 1
jmp 0x1025f19
push 4
push 0
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 0x475], 0
mov dl, byte [ebp - 0x475]
mov byte [ebp - 0xaaf], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.01010c92
mov al, byte [ebp - 0xaaf]
jmp 0x1026286
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
push 0x104
lea eax, [ebp - 0x684]
push eax
call fcn.01013f8a
test eax, eax
jge 0x1025fbd
mov byte [ebp - 0xab0], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.01010c92
mov al, byte [ebp - 0xab0]
jmp 0x1026286
mov ecx, dword [ebp - 0x268]
and ecx, 0x10
je 0x1026023
push 0
push 0x104
push 0x1006b44
lea edx, [ebp - 0x684]
push edx
call fcn.0105289c
test eax, eax
jne 0x1026023
mov byte [ebp - 0xab1], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.01010c92
mov al, byte [ebp - 0xab1]
jmp 0x1026286
mov dword [ebp - 0x898], 1
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x684]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x89c], eax
cmp dword [ebp - 0x89c], 0xffffffff
je 0x10261e4
cmp dword [ebp - 0x898], 1
jne 0x10261e4
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
push 0x104
lea edx, [ebp - 0x474]
push edx
call fcn.01013f8a
test eax, eax
jl 0x10261c5
push 0
push 0x104
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x474]
push ecx
call fcn.0105289c
test eax, eax
je 0x10261c5
mov edx, dword [ebp - 0x264]
and edx, 0x10
je 0x1026139
push 0x1005820
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1026134
push 0x1005818
lea ecx, [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1026134
lea edx, [ebp - 0x474]
push edx
lea ecx, [ebp - 0xab8]
call fcn.0101236d
mov byte [ebp - 4], 3
lea eax, [ebp - 0xab8]
push eax
call fcn.01025d00
movzx ecx, al
neg ecx
sbb ecx, ecx
inc ecx
mov byte [ebp - 0xab2], cl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xab8]
call fcn.01010c92
movzx edx, byte [ebp - 0xab2]
test edx, edx
je 0x1026134
mov byte [ebp - 0x475], 0
jmp 0x10261c5
push 0x80
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x10261c5
lea edx, [ebp - 0xaac]
push edx
push 0
push 0x1006b4c
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x10261ad
push 1
lea eax, [ebp - 0xaac]
push eax
lea ecx, [ebp - 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10261ad
push 4
push 0
lea edx, [ebp - 0xaac]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10261be
push 4
push 0
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 0x475], 0
lea ecx, [ebp - 0x264]
push ecx
mov edx, dword [ebp - 0x89c]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x898], eax
jmp 0x1026047
mov eax, dword [ebp - 0x89c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
and ecx, 0x10
je 0x1026247
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x1026247
push 4
push 0
lea ecx, [ebp - 0x47c]
call fcn.010107dc
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 0x475], 0
mov dl, byte [ebp - 0x475]
mov byte [ebp - 0xab9], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.01010c92
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x688]
call fcn.01010c92
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.01010c92
mov al, byte [ebp - 0xab9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.0101cfec
mov esp, ebp
pop ebp
ret 4