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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f8f91
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
push 0
push 1
mov dword [ebp - 0x288], ebx
call fcn.005494d0
test eax, eax
je 0x5465ce
or eax, 0xffffffff
jmp 0x5467e9
sub esp, 8
mov dword [ebp - 0x18], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x20]
movq qword [ebp - 0x20], xmm0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x6249f8
push ebx
call fcn.005dc520
push 0x260
lea eax, [ebp - 0x284]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00420090
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.005dc190
push 0x250
mov esi, eax
lea eax, [ebp - 0x284]
push 0
push eax
call fcn.00420090
add esp, 0xc
lea eax, [ebp - 0x284]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x5466d8
mov ecx, 1
mov dword [ebp - 0x30], ecx
cmp word [ebp - 0x258], 0x2e
jne 0x546689
mov ax, word [ebp - 0x256]
test ax, ax
je 0x5466b3
cmp ax, 0x2e
jne 0x546689
cmp word [ebp - 0x254], 0
je 0x5466b3
test ecx, ecx
je 0x5466d8
mov eax, dword [ebp - 0x284]
test cl, 1
je 0x54669f
test eax, 0x400
jne 0x5466b3
test cl, 2
je 0x5466aa
test al, 0x10
je 0x5466de
jmp 0x5466b3
test cl, 4
je 0x5466de
test al, 0x10
jne 0x5466de
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x34]
call ebx
test eax, eax
je 0x5466c8
mov ecx, dword [ebp - 0x30]
jmp 0x546663
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 1
xor esi, esi
cmp dword [ebp - 0x34], 0xffffffff
je 0x5467ce
nop
test al, 0x10
je 0x546741
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x258]
push eax
push 0x624284
push dword [ebp - 0x288]
lea ecx, [ebp - 0x20]
call fcn.005dc200
lea ecx, [ebp - 0x20]
call fcn.005dc190
push eax
mov ecx, edi
call fcn.00546580
cmp eax, 0xffffffff
je 0x5467cb
add esi, eax
mov eax, dword [ebp - 0x284]
test al, 4
jne 0x54679b
push 0
push 1
mov ecx, edi
call fcn.005494d0
test eax, eax
jne 0x5467cb
test byte [ebp - 0x284], 2
je 0x54679b
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x258]
push eax
push 0x624284
push dword [ebp - 0x288]
lea ecx, [ebp - 0x20]
call fcn.005dc200
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x20]
and eax, 0xfffffffd
push eax
call fcn.005dc190
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
add esi, eax
mov eax, dword [ebp - 0x34]
cmp eax, 0xffffffff
je 0x5467ce
lea ecx, [ebp - 0x284]
push ecx
push eax
call ebx
test eax, eax
je 0x546807
lea ecx, [ebp - 0x284]
call fcn.004011a0
test al, al
je 0x5467ce
mov eax, dword [ebp - 0x284]
jmp 0x5466f0
or esi, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x34]
cmp eax, 0xffffffff
je 0x5467df
push eax
call edi
lea ecx, [ebp - 0x20]
call fcn.005dc430
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
call edi
mov dword [ebp - 0x34], 0xffffffff
jmp 0x5467d4