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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59ff71
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x63434c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x274], ecx
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
inc edi
mov dword [ebp - 0x27c], ebx
mov dword [ebp + 0xc], edi
cmp edi, 5
ja 0x489d43
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x489d43
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x489d43
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.00429b20
add eax, 0x10
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], 0
push eax
call fcn.0047f130
push 0x5b4864
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004297b0
add esp, 0x14
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edx, dword [ebp - 0x270]
mov esi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x280], esi
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x489a41
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
jne 0x489a76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x26c]
push str.2391_tKUninstall::CleanQmlCacheByRecursion_tFindFirstFile_failed_under__ws__error_code_is_:_lu
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x18
xor bl, bl
jmp 0x489d21
call fcn.004291f0
test eax, eax
je 0x489d63
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x234]
mov byte [ebp - 4], 1
test eax, 0xffff0000
jne 0x489ab5
movzx eax, ax
lea ecx, [ebp - 0x268]
push eax
call fcn.00429d30
jmp 0x489ae2
lea edx, [eax + 2]
jmp 0x489ac0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x489ac0
sub eax, edx
lea ecx, [ebp - 0x268]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0042a000
mov esi, dword [ebp - 0x268]
mov ecx, 0x5b4808
mov eax, esi
nop
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x489b16
test dx, dx
je 0x489b12
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x489b16
add eax, 4
add ecx, 4
test dx, dx
jne 0x489af0
xor eax, eax
jmp 0x489b1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x489ce1
mov ecx, 0x5b480c
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x489b56
test dx, dx
je 0x489b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x489b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x489b30
xor eax, eax
jmp 0x489b5b
sbb eax, eax
or eax, 1
mov byte [ebp - 4], 2
test eax, eax
je 0x489ce1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.0042af40
add esp, 0xc
test byte [ebp - 0x260], 0x10
mov byte [ebp - 4], 5
je 0x489ba9
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x264]
push edi
push eax
call fcn.00489960
jmp 0x489cc4
push 0x2e
push esi
call fcn.0055cf79
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x489cc4
sub ecx, esi
sar ecx, 1
js 0x489cc4
mov eax, dword [esi - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x278]
push eax
lea ecx, [ebp - 0x268]
call fcn.00448d60
mov eax, dword [ebp - 0x278]
mov edx, 0x5be3c4
mov ecx, eax
mov edi, edi
mov di, word [ecx]
cmp di, word [edx]
jne 0x489c16
test di, di
je 0x489c12
mov di, word [ecx + 2]
cmp di, word [edx + 2]
jne 0x489c16
add ecx, 4
add edx, 4
test di, di
jne 0x489bf0
xor edi, edi
jmp 0x489c1b
sbb edi, edi
or edi, 1
lea edx, [eax - 0x10]
mov byte [ebp - 4], 5
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489c36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x489cc1
mov eax, dword [ebp - 0x264]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x489cc1
mov eax, dword [ebp - 0x27c]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x489cc1
test eax, eax
jne 0x489c61
or eax, 0xffffffff
jmp 0x489c8a
test ecx, ecx
jns 0x489c6a
or eax, 0xffffffff
jmp 0x489c8a
push eax
push dword [ebp - 0x264]
call fcn.0055d020
add esp, 8
test eax, eax
jne 0x489c82
or eax, 0xffffffff
jmp 0x489c8a
sub eax, dword [ebp - 0x264]
sar eax, 1
cmp eax, 0xffffffff
je 0x489cc1
lea eax, [ebp - 0x264]
push 1
push eax
call fcn.00446100
add esp, 8
test eax, eax
jne 0x489cc1
push esi
push str.2414_tKUninstall::CleanQmlCacheByRecursion_tdel_qml_cache_file__ws_failed
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonappKUninstallKUninstall.cpp
push str._ERROR_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x14
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x264]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x489ce1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x489cfc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x280]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x489a76
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
mov eax, dword [ebp - 0x26c]
or ecx, 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x489d3f
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
jmp 0x489d45
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00557e89
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00429b00
int3