Function at 0x546cf0
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x58c9bc
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x298]
mov eax, dword [ebp]
mov edi, dword [esp + 0x29c]
sub eax, 0x10
mov dword [esp + 0x24], ecx
call fcn.00481090
add eax, 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
push edi
push eax
lea ebx, [esp + 0x24]
mov dword [esp + 0x298], 0
call fcn.00478fd0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov dword [esp + 0x2c], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x546da0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x546fa2
test byte [esp + 0x34], 0x10
jne 0x546e80
mov eax, dword [ebp]
sub eax, 0x10
call fcn.00481090
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
mov byte [esp + 0x290], 1
call fcn.00482d20
mov eax, dword [eax]
push 0x5aeb10
push eax
call fcn.005645c3
add esp, 8
test eax, eax
mov eax, dword [esp + 0x30]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x546e10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x546e25
push 1
push 0x5aeb10
lea ecx, [esp + 0x1c]
push ecx
call fcn.00473c80
lea eax, [esp + 0x60]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x546e30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x64]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00473c80
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x546e70
mov esi, dword [esp + 0x24]
lea ebx, [esp + 0x14]
call fcn.0047e250
mov esi, dword [esp + 0x2c]
mov byte [esp + 0x290], 0
lea eax, [edi - 0x10]
jmp 0x546f6e
lea ecx, [esp + 0x60]
push 0x5aec28
push ecx
call fcn.005645c3
add esp, 8
test eax, eax
je 0x546f87
lea edx, [esp + 0x60]
push 0x5b2884
push edx
call fcn.005645c3
add esp, 8
test eax, eax
je 0x546f87
mov eax, dword [ebp]
sub eax, 0x10
call fcn.00481090
add eax, 0x10
mov dword [esp + 0x18], eax
push 1
push 0x5aeb10
lea eax, [esp + 0x20]
mov ebx, 2
push eax
mov byte [esp + 0x29c], bl
call fcn.00473c80
lea eax, [esp + 0x60]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x546ef0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00473c80
lea eax, [esp + 0x20]
push eax
mov ecx, 0x5bdeb8
call fcn.00481430
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x298], 3
call fcn.00546cf0
mov byte [esp + 0x290], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x546f5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x546f87
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x546da9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x290], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x546fcd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00564207
add esp, 0x280
ret 8