Function at 0x47afc0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5814d5
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x60bd28]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x60bd28]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x180], 0
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47b024
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x180], 1
call fcn.00512f10
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x47b056
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x596b3c
lea ecx, [esp + 0x24]
mov byte [esp + 0x184], 2
call fcn.00402a30
push 0x596b3c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x184], 3
call fcn.00402a30
push 1
push 0x596b3c
lea ecx, [esp + 0x20]
mov byte [esp + 0x188], 4
call fcn.004086f0
push 0x5c
lea ecx, [esp + 0x18c]
push ecx
lea edx, [esp + 0x2c]
push edx
call fcn.00477bb0
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x184], 5
call fcn.004025f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x180], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b0fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x5961cc
push 0x597048
lea ecx, [esp + 0x1c]
call fcn.00408410
push 3
push 0x599a80
lea ecx, [esp + 0x1c]
call fcn.004086f0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b49c
mov bl, 6
jmp 0x47b140
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x60]
push eax
push ecx
call fcn.0053fceb
add esp, 8
test eax, eax
setne al
test al, al
je 0x47b266
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x60]
push edx
push eax
call fcn.0053fceb
add esp, 8
test eax, eax
setne al
test al, al
je 0x47b266
push 0
push 0x596192
lea ecx, [esp + 0x24]
call fcn.00402290
push 0x5c
lea ecx, [esp + 0x18c]
push ecx
lea edx, [esp + 0x34]
push edx
call fcn.00477bb0
lea ecx, [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x198], bl
call fcn.004026d0
add esp, 0x18
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x184], 7
call fcn.004025f0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x180], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b1f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0x180], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b21d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [esp + 0x34], 0x10
mov ebp, dword [esp + 0x1c]
je 0x47b24b
push ecx
lea eax, [ebp - 0x10]
mov dword [esp + 0x34], esp
mov esi, esp
push eax
call fcn.00401b70
mov ecx, dword [esp + 0x30]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0047afc0
jmp 0x47b266
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x47b366
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x34]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x47b140
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov edi, eax
cmp edi, 0x12
je 0x47b43f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x180], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b2bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x180], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b2e5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x180], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b30d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x180], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b331
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x188]
add eax, 0xfffffff0
mov dword [esp + 0x180], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b35f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x47b568
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x180], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47b396
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x180], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b3be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x180], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b3e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x180], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b40a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x188]
add eax, 0xfffffff0
mov dword [esp + 0x180], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b438
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x47b568
mov ebx, dword [esp + 0x188]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x47b461
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x47b4a3
call esi
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00401340
lea ecx, [esp + 0x20]
call fcn.00401340
lea ecx, [esp + 0x14]
call fcn.00401340
lea ecx, [esp + 0x1c]
call fcn.00401340
lea ecx, [esp + 0x188]
call fcn.00401340
mov eax, esi
jmp 0x47b568
mov ebx, dword [esp + 0x188]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x180], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b4cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x180], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b4f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x180], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b51b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x180], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b53f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov dword [esp + 0x180], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47b566
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0053fab2
add esp, 0x170
ret 4