Function at 0x4727e0
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5258e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push ebp
push esi
push edi
xor eax, eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x10], eax
push 0x52be04
lea eax, [esp + 0x17c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402570
mov eax, dword [eax]
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov dword [esp + 0x1c], esi
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47285a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp esi, ebp
jne 0x47288a
mov eax, dword [esp + 0x178]
add eax, 0xfffffff0
mov dword [esp + 0x170], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x472883
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4729ee
mov edi, dword [sym.imp.kernel32.dll_SetFileAttributesA]
mov ebx, 1
test byte [esp + 0x28], bl
je 0x47292b
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00402570
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov esi, eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4728e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x28]
push edx
and esi, 0xfffffffe
call fcn.00402570
mov eax, dword [eax]
add esp, 0xc
push esi
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472923
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x47292b
mov dword [esp + 0x10], ebx
test byte [esp + 0x28], 0x10
je 0x4729a6
cmp byte [esp + 0x54], 0x2e
je 0x4729a6
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x17c]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402570
add esp, 8
mov ecx, esp
mov dword [esp + 0x28], esp
push 0x52af78
push eax
push ecx
mov byte [esp + 0x180], bl
call fcn.00402570
add esp, 0xc
call fcn.004727e0
mov esi, eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x170], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47299e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x4729a6
mov dword [esp + 0x10], ebx
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_FindNextFileA]
test eax, eax
jne 0x472895
push esi
call dword [sym.imp.kernel32.dll_FindClose]
mov eax, dword [esp + 0x178]
add eax, 0xfffffff0
mov dword [esp + 0x170], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
test ebp, ebp
jg 0x4729ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x164
ret