Function at 0x49e2e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x569e88
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0xdc], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xc4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xe0], ecx
mov dword [ebp - 0xb0], ebx
cmp dword [eax + 4], ebx
je 0x49e8c2
lea ecx, [ebp - 0x8c]
call fcn.004cc970
mov eax, dword [esi]
mov dword [ebp - 4], ebx
cmp dword [eax - 0xc], ebx
je 0x49e8b0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x49e8b0
push esi
lea ecx, [ebp - 0x8c]
call fcn.004ce1d0
mov eax, dword [ebp - 0x8c]
lea ecx, [ebp - 0x8c]
push dword [0x5893f8]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x49e8b0
xorps xmm0, xmm0
movlpd qword [ebp - 0xd8], xmm0
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x49e3c0
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x98], edi
mov byte [ebp - 4], 1
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x49e3ee
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xac], esi
mov byte [ebp - 4], 2
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x49e41c
push 0x80004005
call fcn.0045a8f0
mov eax, dword [ecx]
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xbc], ebx
mov ecx, dword [ebp - 0x9c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x90], 0
cmp dword [ecx + 4], 0
jle 0x49e851
mov eax, dword [ebp - 0xd4]
xor edi, edi
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xd0], eax
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x49e3b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x9c]
mov byte [ebp - 4], 4
cmp edi, dword [eax + 4]
jae 0x49e8e2
mov eax, dword [eax]
lea ecx, [edi*4]
mov dword [ebp - 0xa0], ecx
push dword [eax + ecx]
lea eax, [ebp - 0xc0]
push str._extensions_settings__s_state
push eax
call fcn.0045acb0
add esp, 0xc
mov dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0xc0]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0xd4], eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004a0d60
add esp, 0xc
test eax, eax
je 0x49e80e
cmp dword [ebp - 0x94], 1
jne 0x49e80e
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x49e3b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc8], eax
mov edi, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 5
cmp eax, dword [edi + 4]
jae 0x49e8e2
mov eax, dword [edi]
add eax, dword [ebp - 0xa0]
push dword [eax]
lea eax, [ebp - 0xc8]
push str._extensions_settings__s_active_permissions_api_0__homepage
push eax
call fcn.0045acb0
add esp, 0xc
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x49e3b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 6
cmp eax, dword [edi + 4]
jae 0x49e8e2
mov eax, dword [edi]
add eax, dword [ebp - 0xa0]
push dword [eax]
lea eax, [ebp - 0xb4]
push str._extensions_settings__s_granted_permissions_api_0__homepage
push eax
call fcn.0045acb0
add esp, 0xc
call fcn.0045adc0
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
je 0x49e3b6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x90]
mov byte [ebp - 4], 7
cmp eax, dword [edi + 4]
jae 0x49e8e2
mov eax, dword [edi]
add eax, dword [ebp - 0xa0]
push dword [eax]
lea eax, [ebp - 0x94]
push str._extensions_settings__s_install_time
push eax
call fcn.0045acb0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov eax, dword [ebp - 0xc8]
push ecx
add eax, 0xfffffff0
mov edi, esp
push eax
mov dword [ebp - 0xcc], eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004a33e0
mov edi, dword [ebp - 0xb4]
add esp, 0xc
test eax, eax
je 0x49e7ab
mov eax, dword [ebp - 0x98]
cmp dword [eax - 0xc], 0
je 0x49e7ab
lea eax, [ebp - 0xac]
mov dword [ebp - 0xb0], 1
push eax
push ecx
lea eax, [edi - 0x10]
mov esi, esp
push eax
call fcn.0045a950
add eax, 0x10
add esp, 4
mov dword [esi], eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004a33e0
mov esi, dword [ebp - 0xac]
add esp, 0xc
test eax, eax
je 0x49e7ab
cmp dword [esi - 0xc], 0
je 0x49e7ab
push esi
lea ecx, [ebp - 0x98]
call fcn.0045cd80
test eax, eax
jne 0x49e7ab
lea eax, [ebp - 0xbc]
xorps xmm0, xmm0
push eax
push ecx
lea eax, [ebp - 0x94]
movlpd qword [ebp - 0xa4], xmm0
mov ecx, esp
push eax
call fcn.0045a370
lea eax, [ebp - 0x8c]
push eax
call fcn.004a33e0
mov ebx, dword [ebp - 0xbc]
add esp, 0xc
test eax, eax
je 0x49e720
cmp dword [ebx - 0xc], 0
je 0x49e720
push ebx
call fcn.00527619
add esp, 4
mov dword [ebp - 0xa0], eax
mov ecx, eax
jmp 0x49e732
mov edx, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
mov dword [ebp - 0xa0], ecx
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xa8], edx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x49e758
cmp edx, dword [ebp - 0xb8]
jb 0x49e7ab
ja 0x49e758
cmp ecx, dword [ebp - 0xd0]
jbe 0x49e7ab
mov ecx, dword [ebp - 0xc4]
lea eax, [ebp - 0x98]
push eax
call fcn.0045a580
push dword [ebp - 0x90]
mov ecx, dword [ebp - 0x9c]
call fcn.0049d360
mov ecx, dword [ebp - 0xdc]
push eax
call fcn.0045a580
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xe0]
mov dword [eax], 1
mov edx, dword [ebp - 0x94]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49e7cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 5
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49e7ed
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xcc]
or ecx, 0xffffffff
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49e80e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xd4]
or ecx, 0xffffffff
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49e82f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x90]
mov eax, dword [ebp - 0x9c]
inc edi
mov dword [ebp - 0x90], edi
cmp edi, dword [eax + 4]
jl 0x49e462
mov edi, dword [ebp - 0x98]
add ebx, 0xfffffff0
mov byte [ebp - 4], 2
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49e86f
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
or ebx, 0xffffffff
mov ecx, ebx
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x49e88f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x49e8aa
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ebx, dword [ebp - 0xb0]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.004ccab0
mov eax, ebx
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 0x14
push 0x80070057
call fcn.0045a8f0
int3