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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57558b
mov eax, dword fs:[0]
push eax
sub esp, 0x2e8
mov eax, dword [0x5d6b80]
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 - 0x26c], ecx
xor ecx, ecx
mov dword [ebp - 0x268], ecx
mov dword [ebp - 0x278], ecx
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51860e
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x284], eax
push dword [0x5d64b8]
lea ecx, [ebp - 0x280]
mov dword [ebp - 4], 0
call fcn.0045a3a0
push 1
push 0x57e140
lea ecx, [ebp - 0x280]
mov byte [ebp - 4], 1
call fcn.00472540
mov edx, dword [str.Updater]
test edx, edx
jne 0x51865a
xor ecx, ecx
jmp 0x51866f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x518660
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x280]
call fcn.00472540
lea eax, [ebp - 0x284]
push eax
push dword [ebp - 0x280]
call fcn.005158b0
add esp, 8
or ebx, 0xffffffff
test eax, eax
js 0x518c04
push 0x580670
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00480bb0
add esp, 0xc
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [ebp - 0x27c]
mov esi, eax
add edi, 0xfffffff0
mov dword [ebp - 0x274], esi
mov edx, ebx
lea ecx, [edi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5186ed
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
cmp esi, 0xffffffff
je 0x518c0f
xor edi, edi
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x5187b5
lea eax, [ebp - 0x234]
push 0x57ace8
push eax
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x5186f8
lea eax, [ebp - 0x234]
push 0x580678
push eax
call fcn.00526fc5
add esp, 8
test eax, eax
je 0x5186f8
test byte [ebp - 0x260], 0x10
je 0x5186f8
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x270]
call fcn.0045a3a0
push dword [ebp + 8]
mov ecx, dword [ebp - 0x26c]
lea eax, [ebp - 0x270]
push eax
mov byte [ebp - 4], 2
call fcn.00518c80
mov esi, dword [ebp - 0x270]
mov edx, ebx
add esi, 0xfffffff0
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 1
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x5187a1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x288]
mov esi, dword [ebp - 0x274]
test eax, eax
je 0x5186f8
inc edi
jmp 0x5186f8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x26c]
cmp edi, dword [ecx + 0xd4]
jge 0x518c0a
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x5187ea
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x290], edi
mov byte [ebp - 4], 3
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51881a
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x274], ebx
mov byte [ebp - 4], 4
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x51884a
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x27c], esi
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x26c]
add eax, 0xd0
mov ecx, eax
mov dword [ebp - 0x288], eax
call fcn.0045d2c0
mov dword [ebp - 0x278], eax
test eax, eax
je 0x518a7e
mov esi, eax
test esi, esi
je 0x518a1b
push dword [esi]
lea eax, [ebp - 0x274]
push str.SOFTWAREAskPartnerNetworkToolbar_sInfo
push eax
call fcn.0045acb0
mov ebx, dword [ebp - 0x274]
lea eax, [ebp - 0x27c]
push eax
push str.timeinstalled
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00511e70
add esp, 0x1c
test eax, eax
je 0x518929
push 0x57e140
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x2a8]
push eax
call fcn.00480bb0
mov ecx, dword [ebp - 0x268]
push esi
push eax
or ecx, 1
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x268], ecx
push eax
mov dword [ebp - 0x278], ecx
call fcn.00480af0
or dword [ebp - 0x268], 2
add esp, 0x18
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp - 0x261], 0
test eax, eax
jne 0x518930
mov byte [ebp - 0x261], 1
mov edx, dword [ebp - 0x268]
test dl, 2
je 0x51897c
mov eax, dword [ebp - 0x2a4]
and edx, 0xfffffffd
add eax, 0xfffffff0
mov dword [ebp - 0x268], edx
mov dword [ebp - 0x28c], eax
or ecx, 0xffffffff
mov dword [ebp - 0x278], edx
add eax, 0xc
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x51897c
mov edx, dword [ebp - 0x28c]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x268]
mov dword [ebp - 4], 5
test dl, 1
je 0x5189b1
and edx, 0xfffffffe
or ecx, 0xffffffff
mov dword [ebp - 0x268], edx
mov edx, dword [ebp - 0x2a8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x5189b1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x261], 0
je 0x518a17
mov eax, dword [esi + 4]
mov dword [ebp - 0x28c], eax
test eax, eax
je 0x518a11
cmp dword [edi - 0xc], 0
je 0x5189dd
push 0x580680
lea ecx, [ebp - 0x290]
call fcn.0047cf20
mov eax, dword [esi]
lea ecx, [ebp - 0x290]
push dword [eax - 0xc]
push eax
call fcn.00472540
mov edi, dword [ebp - 0x28c]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x30]
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 0xc]
mov edi, dword [ebp - 0x290]
mov dword [esi + 4], 0
mov dword [ebp - 0x270], esi
test esi, esi
jne 0x518a1f
xor esi, esi
jmp 0x518a52
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x518a50
mov ebx, dword [ebp - 0x288]
xor edx, edx
mov eax, dword [esi + 0xc]
mov esi, dword [ebx + 8]
div esi
inc edx
cmp edx, esi
jae 0x518a4a
mov eax, dword [ebx]
mov eax, dword [eax + edx*4]
test eax, eax
cmovne ecx, eax
inc edx
test ecx, ecx
je 0x518a37
mov ebx, dword [ebp - 0x274]
mov esi, ecx
mov eax, dword [ebp - 0x270]
test eax, eax
je 0x518a70
mov ecx, dword [ebp - 0x288]
push eax
call fcn.00517b20
xor eax, eax
mov dword [ebp - 0x270], eax
test esi, esi
jne 0x518896
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x2f4]
call fcn.004cbcb0
push dword [0x5d64a8]
xor eax, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2a0]
mov word [ebp - 0x2a0], ax
call fcn.00461c30
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 8
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004cc5d0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
lea ecx, [ebp - 0x2a0]
push edi
mov word [ebp - 0x2a0], ax
call fcn.00461c30
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004cc650
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push dword [0x5d64a8]
xor eax, eax
lea ecx, [ebp - 0x2a0]
mov word [ebp - 0x2a0], ax
call fcn.00461c30
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004cc3d0
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
xor eax, eax
lea ecx, [ebp - 0x2a0]
push edi
mov word [ebp - 0x2a0], ax
call fcn.00461c30
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp - 0x2f4]
call fcn.004cc450
lea eax, [ebp - 0x2a0]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2f4]
mov ecx, 0x5de970
push eax
push 0xb
call fcn.0051cf00
lea ecx, [ebp - 0x2f4]
mov byte [ebp - 4], 5
call fcn.0046e1a0
add esi, 0xfffffff0
mov byte [ebp - 4], 4
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518bc7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [ebx - 0x10]
mov byte [ebp - 4], 3
or ebx, 0xffffffff
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518be7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, ebx
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518c04
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x26c]
call fcn.005164b0
mov edx, dword [ebp - 0x280]
mov ecx, ebx
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x518c32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x284]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x518c56
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00525878
mov esp, ebp
pop ebp
ret 4