Function at 0x485280
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66d580
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x718924]
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 ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x2b0], ebx
test ebx, ebx
je 0x4857af
test edi, edi
je 0x4857af
cmp word [ebx], 0
je 0x4857af
xor esi, esi
lea eax, [ebp - 0x2a8]
push 0x250
push esi
push eax
mov dword [ebp - 0x2ac], esi
call fcn.004e30c0
xor eax, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00463e20
mov esi, eax
add esp, 0x14
lea eax, [ebp - 0x40]
cmp eax, esi
je 0x48539f
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x485355
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48534b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d0
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x30], 0
xor eax, eax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x2c], 7
mov eax, dword [esi]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x58]
call fcn.00448fb0
mov ecx, edi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4853b0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x40]
call fcn.0044e7a0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
test ebx, ebx
je 0x48574e
cmp ebx, 0xffffffff
je 0x48574e
jmp 0x485400
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push dword [ebp - 0x2b0]
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
call fcn.00463e20
mov esi, eax
add esp, 8
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x4854bb
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x485471
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485467
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d0
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov dword [ebp - 0x18], 0
xor eax, eax
mov word [ebp - 0x28], ax
mov dword [ebp - 0x14], 7
mov eax, dword [esi]
mov dword [ebp - 0x28], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4854f5
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4854eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d0
push edx
push ecx
call fcn.004cb4db
add esp, 8
lea ecx, [ebp - 0x27c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485500
sub ecx, edx
lea eax, [ebp - 0x27c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0044e7a0
test byte [ebp - 0x2a8], 0x10
je 0x485628
mov ecx, 0x67b35c
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48555d
test dx, dx
je 0x485559
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48555d
add eax, 4
add ecx, 4
test dx, dx
jne 0x485537
xor eax, eax
jmp 0x485562
sbb eax, eax
or eax, 1
test eax, eax
je 0x48565c
mov ecx, 0x67b360
lea eax, [ebp - 0x27c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48559b
test dx, dx
je 0x485597
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48559b
add eax, 4
add ecx, 4
test dx, dx
jne 0x485575
xor eax, eax
jmp 0x4855a0
sbb eax, eax
or eax, 1
test eax, eax
je 0x48565c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00485280
add esp, 8
mov dword [ebp - 0x2ac], eax
test eax, eax
jns 0x48565c
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x485605
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4855fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d0
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov esi, dword [ebp - 0x2ac]
cmp ebx, 0xffffffff
je 0x485775
test ebx, ebx
je 0x485775
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x485775
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x48565c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 4
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4856e6
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x48569a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x485690
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d0
push edx
push ecx
call fcn.004cb4db
add esp, 8
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x485400
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 0x676fec
lea esp, [esp]
mov cx, word [edi]
cmp cx, word [eax]
jne 0x48572e
test cx, cx
je 0x4856e2
mov cx, word [edi + 2]
cmp cx, word [eax + 2]
jne 0x48572e
add edi, 4
add eax, 4
test cx, cx
jne 0x4856c0
xor eax, eax
jmp 0x485733
mov edx, dword [ebp - 0x14]
mov esi, 0x80004005
cmp edx, 8
jb 0x48560b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x48571f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d0
push edx
push ecx
call fcn.004cb4db
add esp, 8
jmp 0x48560b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x48576f
push dword [ebp - 0x2b0]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x48576f
mov esi, 0x80004005
jmp 0x485775
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x485768
cmp eax, 3
je 0x485768
mov esi, 0x80004005
jmp 0x48560b
xor esi, esi
jmp 0x48560b
mov esi, dword [ebp - 0x2ac]
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x4857ab
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4857a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4857d5
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, esi
jmp 0x4857b4
mov eax, 0x80070057
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
call fcn.004e6589
int3