Function at 0x485400
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e66ca
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x29c], eax
mov edi, ecx
mov dword [ebp - 0x294], edi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x298], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x290], ecx
test cl, cl
je 0x4854a1
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x2bc], 0
push 0x5026b0
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2b8], 0
movups xmmword [ebp - 0x2cc], xmm0
call fcn.0040a4a0
lea esi, [ebp - 0x2cc]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x4854bb
push eax
lea ecx, [ebp - 0x2e4]
call fcn.0040e700
mov esi, eax
mov dword [ebp - 4], 1
mov eax, 2
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x485869
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4854e9
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2b4]
call fcn.00409ee0
mov eax, dword [ebp - 0x284]
or eax, 4
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], eax
push esi
lea eax, [ebp - 0x2b4]
mov dword [ebp - 4], 2
push eax
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2c]
call fcn.0043ba70
or dword [ebp - 0x284], 8
lea ecx, [ebp - 0x2b4]
call fcn.0040a590
mov eax, dword [ebp - 0x284]
test al, 2
je 0x48556b
and eax, 0xfffffffd
lea ecx, [ebp - 0x2e4]
mov dword [ebp - 0x284], eax
call fcn.0040a590
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 6
test al, 1
je 0x485587
and eax, 0xfffffffe
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x284], eax
call fcn.0040a590
xor ecx, ecx
call fcn.0048b960
push 0
xor ecx, ecx
lea edx, [ebp - 0x280]
test al, al
lea eax, [ebp - 0x2c]
push 0
push 0
setne cl
cmp dword [ebp - 0x18], 8
push edx
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
mov dword [ebp - 0x30], esi
mov byte [ebp - 4], 7
cmp esi, 0xffffffff
jne 0x4855d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x48586e
jmp 0x485841
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x288], eax
mov eax, dword [ebp - 0x280]
shr eax, 4
and al, 1
mov dword [ebp - 0x28c], eax
je 0x48567e
mov ecx, 0x4fd9c4
lea eax, [ebp - 0x254]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x48562a
test dx, dx
je 0x485626
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x48562a
add eax, 4
add ecx, 4
test dx, dx
jne 0x485604
xor eax, eax
jmp 0x48562f
sbb eax, eax
or eax, 1
test eax, eax
je 0x485806
mov eax, 0x505cac
lea ecx, [ebp - 0x254]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x485668
test dx, dx
je 0x485664
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x485668
add ecx, 4
add eax, 4
test dx, dx
jne 0x485642
xor eax, eax
jmp 0x48566d
sbb eax, eax
or eax, 1
test eax, eax
je 0x485806
cmp byte [ebp - 0x288], 0
jne 0x4856ef
cmp byte [ebp - 0x290], 0
je 0x4856a9
mov ecx, dword [ebp - 0x29c]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x485697
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4856e2
mov eax, dword [ebp - 0x298]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x485864
mov eax, dword [eax]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x294]
mov ecx, edi
call dword [0x4e933c]
mov ecx, dword [ebp - 0x14]
call edi
mov edi, dword [ebp - 0x294]
cmp byte [ebp - 0x28c], 0
je 0x485806
cmp byte [ebp - 0x290], 0
je 0x485806
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x485869
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x48571e
mov eax, dword [edi]
push 1
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push ecx
push dword [ebp - 0x28c]
lea ecx, [ebp - 0x2cc]
call fcn.00409ee0
or dword [ebp - 0x284], 0x10
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x485750
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2cc]
call fcn.0040a0d0
mov dword [ebp - 0x2a4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2b4], xmm0
mov dword [ebp - 0x2a0], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2b4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x2a4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
or dword [ebp - 0x284], 0x20
mov edx, dword [ebp - 0x29c]
push ecx
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2b4]
push dword [ebp - 0x288]
push dword [ebp - 0x290]
push dword [ebp - 0x298]
call fcn.00485400
add esp, 0x10
lea ecx, [ebp - 0x2b4]
call fcn.0040a590
lea ecx, [ebp - 0x2cc]
mov byte [ebp - 4], 7
call fcn.0040a590
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4855e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x48583a
lea ecx, [ebp - 0x2c]
call fcn.0040a630
push eax
push str.Unable_to_enumerate_directory__ls_
push edi
jmp 0x48587d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
call fcn.0040a590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
ret
call fcn.0049d17a
call fcn.0040a2f0
lea ecx, [ebp - 0x2c]
call fcn.0040a630
push eax
push str.Unable_to_enumerate_directory__ls_
push esi
lea ecx, [ebp - 0x2b0]
call fcn.00413560
push 0x518f50
lea eax, [ebp - 0x2b0]
push eax
call fcn.004a2f8b
int3