Function at 0x4876a0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d90da
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x288], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4876e8
test al, 0x10
jne 0x4876f7
mov ecx, esi
call fcn.00488900
test eax, eax
je 0x487da8
push ebx
lea ecx, [ebp - 0x270]
call fcn.0041c9e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x270]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x487740
lea ecx, [edx - 1]
test ecx, ecx
js 0x48779b
cmp ecx, edx
jg 0x48779b
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x487740
cmp eax, 0x2f
je 0x487740
push str.0s
lea ecx, [ebp - 0x270]
call fcn.0041c1b0
push esi
lea ecx, [ebp - 0x26c]
call fcn.0041c9e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x26c]
mov edx, dword [eax - 0xc]
test edx, edx
je 0x487786
lea ecx, [edx - 1]
test ecx, ecx
js 0x48779b
cmp ecx, edx
jg 0x48779b
movzx eax, word [eax + ecx*2]
cmp eax, 0x5c
je 0x487786
cmp eax, 0x2f
je 0x487786
push str.0s
lea ecx, [ebp - 0x26c]
call fcn.0041c1b0
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4877a5
push 0x80004005
call fcn.0041ce60
push 0x80070057
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x268], esi
mov byte [ebp - 4], 2
call fcn.0041bef0
mov ecx, eax
test ecx, ecx
jne 0x4877cc
push 0x80004005
call fcn.0041ce60
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x27c], edi
push ebx
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 3
call fcn.0041c9e0
push 0x4fa994
lea edx, [ebp - 0x280]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x278]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 5
call fcn.0041c740
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x278]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487839
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
je 0x487cdd
test byte [ebp - 0x264], 0x10
lea eax, [ebp - 0x238]
je 0x487a01
mov ecx, 0x4ec430
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4878a6
test dx, dx
je 0x4878a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4878a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x487880
xor eax, eax
jmp 0x4878ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x48798d
mov ecx, 0x4e79dc
lea eax, [ebp - 0x238]
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4878e6
test dx, dx
je 0x4878e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4878e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4878c0
xor eax, eax
jmp 0x4878eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x48798d
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x274]
call fcn.0041c030
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 6
push eax
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x284]
call fcn.0041c030
add esp, 4
push dword [ebp + 8]
mov byte [ebp - 4], 7
mov edx, dword [ebx]
mov ecx, dword [eax]
call fcn.004876a0
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x284]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487966
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487987
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x487ccb
nop dword [eax + eax]
test byte [ebp - 0x264], 0x10
lea eax, [ebp - 0x238]
je 0x487bd5
mov ecx, 0x4ec430
nop dword [eax + eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x487aed
test dx, dx
je 0x4879fa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x487aed
add eax, 4
add ecx, 4
test dx, dx
jne 0x4879d0
xor eax, eax
jmp 0x487af2
push eax
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x274]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 8
call fcn.0041c740
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x274]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487a4a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x274]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 9
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487a96
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x27c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487adc
test al, 0x10
jne 0x487adc
cmp dword [ebp + 8], 0
mov esi, dword [ebp - 0x268]
je 0x487ac3
push 5
push edi
push esi
call ebx
jmp 0x48798d
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x48798d
push 5
push edi
push esi
call ebx
jmp 0x48798d
mov esi, dword [ebp - 0x268]
push 1
push edi
push esi
call ebx
jmp 0x48798d
sbb eax, eax
or eax, 1
test eax, eax
je 0x487caa
mov ecx, 0x4e79dc
lea eax, [ebp - 0x238]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x487b2b
test dx, dx
je 0x487b27
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x487b2b
add eax, 4
add ecx, 4
test dx, dx
jne 0x487b05
xor eax, eax
jmp 0x487b30
sbb eax, eax
or eax, 1
test eax, eax
je 0x487caa
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x284]
call fcn.0041c030
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x238]
mov byte [ebp - 4], 0xa
push eax
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x274]
call fcn.0041c030
add esp, 4
push dword [ebp + 8]
mov byte [ebp - 4], 0xb
mov edx, dword [ebx]
mov ecx, dword [eax]
call fcn.004876a0
mov byte [ebp - 4], 0xa
or ebx, 0xffffffff
mov edx, dword [ebp - 0x274]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487bab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov eax, ebx
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487caa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x487caa
push eax
lea edx, [ebp - 0x270]
lea ecx, [ebp - 0x28c]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 0xc
call fcn.0041c740
mov byte [ebp - 4], 4
or esi, 0xffffffff
mov edx, dword [ebp - 0x28c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487c1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x238]
push eax
lea edx, [ebp - 0x26c]
lea ecx, [ebp - 0x290]
call fcn.0041c030
add esp, 4
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xd
call fcn.0041c740
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x290]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487c6a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x27c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x487c9e
test al, 0x10
jne 0x487c9e
cmp dword [ebp + 8], 0
mov esi, dword [ebp - 0x268]
je 0x487c90
push 5
jmp 0x487ca6
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x487caa
push 5
jmp 0x487ca6
mov esi, dword [ebp - 0x268]
push 1
push edi
push esi
call ebx
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4879b0
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x487d06
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x487d06
push 4
push 0
push dword [ebp - 0x288]
call ebx
mov byte [ebp - 4], 3
or ebx, 0xffffffff
mov edx, dword [ebp - 0x280]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487d2a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x487d45
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x487d60
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x487d81
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x487da3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a474b
mov esp, ebp
pop ebp
ret