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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508e52
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x56a078]
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 eax, ecx
mov dword [ebp - 0x270], eax
mov esi, dword [eax]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x523a98
je 0x470619
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x47062f
cmp ecx, dword [esi - 0x10]
jne 0x47062f
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x47065a
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x470643
call fcn.00406997
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.004068c0
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x268]
call fcn.0046fb70
push 0x52ec08
call fcn.004d635d
add esp, 4
lea ecx, [ebp - 0x268]
push eax
push 0x52ec08
call fcn.004072c9
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.004d1f70
mov esi, dword [ebp - 0x268]
lea eax, [ebp - 0x260]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0x26c], eax
setne cl
or ebx, 0xffffffff
test ecx, ecx
je 0x47084a
nop dword [eax]
cmp word [ebp - 0x234], 0x2e
jne 0x47070e
mov ax, word [ebp - 0x232]
test ax, ax
je 0x470829
cmp ax, 0x2e
jne 0x47070e
cmp word [ebp - 0x230], 0
je 0x470829
mov eax, dword [ebp - 0x270]
mov edi, dword [eax]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x523a98
je 0x470727
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi - 4], 0
lea eax, [edi - 4]
jl 0x47073d
cmp ecx, dword [edi - 0x10]
jne 0x47073d
lea ebx, [edi - 0x10]
lock inc dword [eax]
jmp 0x470767
mov eax, dword [ecx]
push 2
push dword [edi - 0xc]
call dword [eax]
mov ebx, eax
test ebx, ebx
je 0x47063e
mov ecx, dword [edi - 0xc]
mov dword [ebx + 4], ecx
lea ecx, [ebx + 0x10]
mov edx, dword [edi - 0xc]
inc edx
push edx
push edi
call fcn.004068c0
add esp, 8
lea eax, [ebx + 0x10]
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.0046fb70
lea eax, [ebp - 0x234]
push eax
call fcn.004d635d
add esp, 4
lea ecx, [ebp - 0x264]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004072c9
test byte [ebp - 0x260], 0x10
je 0x4707b7
lea ecx, [ebp - 0x264]
call fcn.004708a0
jmp 0x4707e2
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4707d7
and eax, 0xfffffffe
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.00470a10
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x264]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x470823
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x523a98
jne 0x47081f
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x470829
mov ecx, edx
call edi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4706e0
mov eax, dword [ebp - 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x470882
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x470880
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x470882
call edx
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.004d014c
mov esp, ebp
pop ebp
ret