Function at 0x485a90
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 0x50f3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x550144]
xor eax, ebp
mov dword [ebp - 0x10], 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 0x485ad8
test al, 0x10
jne 0x485ae9
push esi
call fcn.00487780
add esp, 4
test eax, eax
je 0x4863ec
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486408
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
push ebx
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.0044f3f0
test al, al
jne 0x485b4c
test ebx, ebx
jne 0x485b25
xor ecx, ecx
jmp 0x485b3f
mov ecx, ebx
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485b30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x268]
call fcn.0044f580
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x268]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x485b93
lea edx, [ecx - 1]
test edx, edx
js 0x48641c
cmp edx, ecx
jg 0x48641c
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x485b93
cmp eax, 0x2f
je 0x485b93
push 1
push 0x536960
lea ecx, [ebp - 0x268]
call fcn.0048c830
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486412
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
push esi
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 2
call fcn.0044f3f0
test al, al
jne 0x485bed
test esi, esi
jne 0x485bcc
xor ecx, ecx
jmp 0x485be0
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485bd1
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x264]
call fcn.0044f580
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x485c31
lea edx, [ecx - 1]
test edx, edx
js 0x48641c
cmp edx, ecx
jg 0x48641c
movzx eax, word [eax + edx*2]
cmp eax, 0x5c
je 0x485c31
cmp eax, 0x2f
je 0x485c31
push 1
push 0x536960
lea ecx, [ebp - 0x264]
call fcn.0048c830
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486426
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x278], edi
mov byte [ebp - 4], 4
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x486430
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
mov byte [ebp - 4], 5
call fcn.00450310
mov ecx, eax
test ecx, ecx
je 0x48643a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x270], eax
push ebx
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 6
call fcn.0044f3f0
test al, al
jne 0x485ccd
test ebx, ebx
jne 0x485cac
xor ecx, ecx
jmp 0x485cc0
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485cb1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x270]
call fcn.0044f580
push 0x537a74
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov ebx, dword [ebp - 0x270]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x485d54
cmp dword [ebx + 0xc], 0
jl 0x485d45
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x485d45
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x280], eax
or ecx, 0xffffffff
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x485d3a
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x280]
add eax, 0x10
mov dword [ebp - 0x270], eax
jmp 0x485d54
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x270]
call fcn.0044f580
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x26c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485d78
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x280], eax
cmp eax, 0xffffffff
je 0x486320
test byte [ebp - 0x260], 0x10
je 0x485ebd
mov edx, 0x5357dc
lea ecx, [ebp - 0x234]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x485dd8
test ax, ax
je 0x485dd4
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x485dd8
add ecx, 4
add edx, 4
test ax, ax
jne 0x485db2
xor eax, eax
jmp 0x485ddd
sbb eax, eax
or eax, 1
test eax, eax
je 0x486039
mov ecx, 0x5357e0
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x485e16
test dx, dx
je 0x485e12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x485e16
add eax, 4
add ecx, 4
test dx, dx
jne 0x485df0
xor eax, eax
jmp 0x485e1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x486039
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0048c0d0
mov ebx, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0048c0d0
mov byte [ebp - 4], 0xa
mov edx, dword [ebx]
mov ecx, dword [eax]
push 0
call fcn.00485a90
mov byte [ebp - 4], 9
or ebx, 0xffffffff
mov edx, dword [ebp - 0x26c]
add esp, 0x1c
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485e93
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x274]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486039
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x486039
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x485f42
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x485f2d
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x485f2d
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x274], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x485f22
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x274]
lea edi, [eax + 0x10]
mov dword [ebp - 0x278], edi
jmp 0x485f42
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x278]
call fcn.0044f580
mov edi, dword [ebp - 0x278]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x485f64
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 0xc
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x485fe9
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x485fd4
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x485fd4
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x274], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x485fc9
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x274]
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
jmp 0x485fe9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.0044f580
mov esi, dword [ebp - 0x27c]
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x26c]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48600d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x48602f
test al, 0x10
jne 0x48602f
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x486039
push 5
jmp 0x486031
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x486314
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x260], 0x10
lea eax, [ebp - 0x234]
je 0x486183
mov ecx, 0x5357dc
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48609e
test dx, dx
je 0x48609a
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48609e
add eax, 4
add ecx, 4
test dx, dx
jne 0x486078
xor eax, eax
jmp 0x4860a3
sbb eax, eax
or eax, 1
test eax, eax
je 0x4862f9
mov ecx, 0x5357e0
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4860dc
test dx, dx
je 0x4860d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4860dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4860b6
xor eax, eax
jmp 0x4860e1
sbb eax, eax
or eax, 1
test eax, eax
je 0x4862f9
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0048c0d0
mov ebx, eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 0xd
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x274]
push eax
call fcn.0048c0d0
mov byte [ebp - 4], 0xe
mov edx, dword [ebx]
mov ecx, dword [eax]
push 0
call fcn.00485a90
mov byte [ebp - 4], 0xd
or ebx, 0xffffffff
mov edx, dword [ebp - 0x274]
add esp, 0x1c
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486159
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, ebx
mov edx, dword [ebp - 0x26c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4862f9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4862f9
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x28c]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 0xf
lea ebx, [edi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x486202
cmp dword [ebx + 0xc], 0
lea edi, [ebx + 0xc]
jl 0x4861ed
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x4861ed
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x284], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4861e2
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x284]
lea edi, [eax + 0x10]
mov dword [ebp - 0x278], edi
jmp 0x486202
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x278]
call fcn.0044f580
mov edi, dword [ebp - 0x278]
mov byte [ebp - 4], 7
or eax, 0xffffffff
mov edx, dword [ebp - 0x28c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x486224
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x290]
push eax
call fcn.0048c0d0
add esp, 0xc
mov byte [ebp - 4], 0x10
lea ebx, [esi - 0x10]
mov ecx, dword [eax]
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4862a9
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x486294
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x486294
push edx
call fcn.0048d310
add esp, 4
mov dword [ebp - 0x284], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x486289
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x284]
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
jmp 0x4862a9
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.0044f580
mov esi, dword [ebp - 0x27c]
mov byte [ebp - 4], 7
or ebx, 0xffffffff
mov edx, dword [ebp - 0x290]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4862cd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4862ef
test al, 0x10
jne 0x4862ef
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4862f9
push 5
jmp 0x4862f1
push 1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x486060
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x48634d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x91
jne 0x48634d
push 4
push 0
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [ebp - 4], 5
mov eax, ebx
mov edx, dword [ebp - 0x270]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x48636e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x486389
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
add edi, 0xfffffff0
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4863a4
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 1
mov eax, ebx
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4863c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4863e7
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 - 0x10]
xor ecx, ebp
call fcn.004de0fd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80070057
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
push 0x80004005
call fcn.00450260
int3