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

Disassembly:
push ebp
lea ebp, [esp - 0x254]
sub esp, 0x254
push 0xffffffffffffffff
push 0x514b40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x57c074]
xor eax, ebp
mov dword [ebp + 0x250], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11], dl
mov eax, ecx
mov dword [ebp - 0x20], eax
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00407162
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
mov ebx, 0x5c
mov edi, dword [eax - 0xc]
test edi, edi
jle 0x478d8b
lea ecx, [edi - 1]
test ecx, ecx
js 0x478fb1
cmp ecx, edi
jg 0x478fb1
cmp word [eax + ecx*2], bx
je 0x478d8b
lea esi, [edi + 1]
test esi, esi
js 0x478fb1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x478d75
push esi
lea ecx, [ebp - 0x18]
call fcn.0040d80a
mov eax, dword [ebp - 0x18]
mov word [eax + edi*2], bx
cmp esi, dword [eax - 8]
jg 0x478fb1
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
push 0x53da28
call fcn.004dfc45
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x53da28
call fcn.0041107c
push 0x250
lea eax, [ebp]
push 0
push eax
call fcn.004dd970
mov esi, dword [ebp - 0x18]
lea eax, [ebp]
add esp, 0xc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
or ebx, 0xffffffff
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x478f5a
cmp word [ebp + 0x2c], 0x2e
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jne 0x478e06
mov ax, word [ebp + 0x2e]
test ax, ax
je 0x478f3c
cmp ax, 0x2e
jne 0x478e06
cmp word [ebp + 0x30], 0
je 0x478f3c
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00407162
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax - 0xc]
test ebx, ebx
jle 0x478e90
lea ecx, [ebx - 1]
test ecx, ecx
js 0x478fb1
cmp ecx, ebx
jg 0x478fb1
cmp word [eax + ecx*2], 0x5c
je 0x478e90
lea edi, [ebx + 1]
test edi, edi
js 0x478fb1
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, edi
or ecx, edx
jge 0x478e69
push edi
lea ecx, [ebp - 0x10]
call fcn.0040d80a
mov eax, dword [ebp - 0x10]
mov ecx, 0x5c
mov word [eax + ebx*2], cx
mov eax, dword [ebp - 0x10]
cmp edi, dword [eax - 8]
jg 0x478fb1
mov dword [eax - 0xc], edi
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov word [eax + edi*2], cx
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp + 0x2c]
push eax
call fcn.004dfc45
add esp, 4
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp + 0x2c]
push eax
call fcn.0041107c
test byte [ebp], 0x10
je 0x478eda
mov dl, byte [ebp - 0x11]
lea ecx, [ebp - 0x10]
call fcn.00478cd0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x478ed0
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00478fd0
jmp 0x478efe
cmp byte [ebp - 0x11], 0
je 0x478efe
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x478ef6
and eax, 0xfffffffe
push eax
push dword [ebp - 0x10]
call edi
lea ecx, [ebp - 0x10]
call fcn.00479270
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, dword [ebp - 0x10]
mov eax, ebx
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x478f3c
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x533850
jne 0x478fbb
mov eax, dword [edx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x478f42
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [ebp]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x478ddb
mov eax, dword [ebp - 0x1c]
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 0x478f8e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x533850
jne 0x478fc4
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.004d9b30
lea esp, [ebp + 0x254]
pop ebp
ret
push 0x80070057
call fcn.0040d968
mov ecx, edx
call edi
jmp 0x478f3c
call edx
jmp 0x478f8e