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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e9f3a
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x521104]
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 0x488401
push 1
xorps xmm0, xmm0
mov dword [ebp - 0x2bc], 0
push 0x506cc4
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x2b8], 0
movups xmmword [ebp - 0x2cc], xmm0
call fcn.0040a370
lea esi, [ebp - 0x2cc]
mov dword [ebp - 4], 0
mov eax, 1
jmp 0x48841b
push eax
lea ecx, [ebp - 0x314]
call fcn.0040e330
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 0x488809
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x488449
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 - 0x2e4]
call fcn.00409de0
mov eax, dword [ebp - 0x284]
or eax, 4
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x288], eax
mov dword [ebp - 4], 2
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x48848a
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x2e4]
call fcn.00409fd0
mov dword [ebp - 0x1c], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x1c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
or dword [ebp - 0x284], 8
lea ecx, [ebp - 0x2e4]
call fcn.0040a450
mov eax, dword [ebp - 0x284]
test al, 2
je 0x488506
and eax, 0xfffffffd
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x284], eax
call fcn.0040a450
mov eax, dword [ebp - 0x284]
mov byte [ebp - 4], 6
test al, 1
je 0x488522
and eax, 0xfffffffe
lea ecx, [ebp - 0x2cc]
mov dword [ebp - 0x284], eax
call fcn.0040a450
xor ecx, ecx
call fcn.0048ebc0
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 0x488574
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x48880e
jmp 0x4887e1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x288], eax
nop dword [eax]
mov eax, dword [ebp - 0x280]
shr eax, 4
and al, 1
mov dword [ebp - 0x28c], eax
je 0x48861c
mov ecx, 0x501bac
lea eax, [ebp - 0x254]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4885c8
test dx, dx
je 0x4885c4
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4885c8
add eax, 4
add ecx, 4
test dx, dx
jne 0x4885a2
xor eax, eax
jmp 0x4885cd
sbb eax, eax
or eax, 1
test eax, eax
je 0x4887a6
mov eax, 0x50a720
lea ecx, [ebp - 0x254]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x488606
test dx, dx
je 0x488602
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x488606
add ecx, 4
add eax, 4
test dx, dx
jne 0x4885e0
xor eax, eax
jmp 0x48860b
sbb eax, eax
or eax, 1
test eax, eax
je 0x4887a6
cmp byte [ebp - 0x288], 0
jne 0x48868d
cmp byte [ebp - 0x290], 0
je 0x488647
mov ecx, dword [ebp - 0x29c]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x488635
mov eax, dword [ecx]
push eax
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x488680
mov eax, dword [ebp - 0x298]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x488804
mov eax, dword [eax]
mov edi, dword [eax + 8]
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x294]
mov ecx, edi
call dword [0x4ed33c]
mov ecx, dword [ebp - 0x14]
call edi
mov edi, dword [ebp - 0x294]
cmp byte [ebp - 0x28c], 0
je 0x4887a6
cmp byte [ebp - 0x290], 0
je 0x4887a6
mov ecx, dword [edi + 0x10]
mov eax, 0x5c
mov word [ebp - 0x14], ax
cmp ecx, 0x7ffffffe
je 0x488809
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4886bc
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 - 0x2fc]
call fcn.00409de0
or dword [ebp - 0x284], 0x10
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4886f0
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2fc]
call fcn.00409fd0
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.00488360
add esp, 0x10
lea ecx, [ebp - 0x2b4]
call fcn.0040a450
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 7
call fcn.0040a450
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x488580
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x12
je 0x4887da
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
push eax
push str.Unable_to_enumerate_directory__ls_
push edi
jmp 0x48881d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x2c]
call fcn.0040a450
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.004a389b
mov esp, ebp
pop ebp
ret
call fcn.004a040a
call fcn.0040a1f0
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
push eax
push str.Unable_to_enumerate_directory__ls_
push esi
lea ecx, [ebp - 0x2b0]
call fcn.004131f0
push 0x51dce8
lea eax, [ebp - 0x2b0]
push eax
call fcn.004a629b
int3