Function at 0x46ec70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bad1a
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x4ff1a0]
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
xor ebx, ebx
mov dword [ebp - 0xd8], ebx
mov esi, ecx
mov edi, 7
xor eax, eax
mov dword [ebp - 0xdc], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov dword [ebp - 4], 1
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov byte [ebp - 4], 2
push 5
xor edx, edx
push str.Opera
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040e680
mov byte [ebp - 4], 3
push 0x33
xor eax, eax
push 0x4c4aa0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0040e680
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x80]
mov ecx, SysReAllocStringLen
call fcn.0041e510
add esp, 8
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
jb 0x46ed42
mov eax, dword [ebp - 0x48]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x46ed64
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x70], ebx
je 0x46eeff
xor ecx, ecx
push 0xf
mov word [ebp - 0x48], cx
push str.InstallLocation
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.0040e680
mov byte [ebp - 4], 5
push 0x33
xor edx, edx
push 0x4c4aa0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xe0], SysReAllocStringLen
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
call fcn.0040e680
mov byte [ebp - 4], 6
push 0x4c4f30
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call fcn.00427210
add esp, 0xc
mov byte [ebp - 4], 7
lea edx, [ebp - 0x80]
push edx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00410c00
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 8
call fcn.00410830
push 1
lea ecx, [ebp - 0xe0]
push ecx
mov edx, esi
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0xd4]
call fcn.00412810
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x64]
call fcn.00409ad0
mov byte [ebp - 4], 8
mov esi, 8
cmp dword [ebp - 0xc0], esi
jb 0x46ee42
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
mov byte [ebp - 4], 7
cmp dword [ebp - 0xa4], esi
jb 0x46ee72
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x88], esi
jb 0x46eea2
mov eax, dword [ebp - 0x9c]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], esi
jb 0x46eecc
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x46eeed
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490458
add esp, 4
mov esi, dword [ebp - 0xdc]
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
jne 0x46f13e
push 5
xor eax, eax
push str.Opera
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.0040e680
mov byte [ebp - 4], 0xa
xor ecx, ecx
push 0x33
mov word [ebp - 0x2c], cx
push 0x4c4aa0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.0040e680
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x80]
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041e510
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x18], 8
jb 0x46ef76
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], 8
jb 0x46ef98
mov eax, dword [ebp - 0x48]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x70], ebx
je 0x46f133
push 0xf
xor edx, edx
push str.InstallLocation
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
call fcn.0040e680
mov byte [ebp - 4], 0xc
push 0x33
xor eax, eax
push 0x4c4aa0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xe0], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040e680
mov byte [ebp - 4], 0xd
push 0x4c4f30
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0xd4]
push edx
call fcn.00427210
add esp, 0xc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x80]
push ecx
push eax
lea edx, [ebp - 0xb8]
push edx
call fcn.00410c00
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xf
call fcn.00410830
push 1
lea eax, [ebp - 0xe0]
mov edx, esi
push eax
lea ecx, [ebp - 0x48]
lea esi, [ebp - 0x9c]
call fcn.00412810
mov byte [ebp - 4], 0x10
push eax
lea ecx, [ebp - 0x64]
call fcn.00409ad0
mov byte [ebp - 4], 0xf
mov esi, 8
cmp dword [ebp - 0x88], esi
jb 0x46f076
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0xa4], esi
jb 0x46f0a6
mov eax, dword [ebp - 0xb8]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0xc0], esi
jb 0x46f0d6
mov edx, dword [ebp - 0xd4]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x18], esi
jb 0x46f100
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x46f121
mov eax, dword [ebp - 0x48]
push eax
call fcn.00490458
add esp, 4
mov esi, dword [ebp - 0xdc]
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x46f226
lea ecx, [eax - 1]
cmp eax, ecx
ja 0x46f14f
push str.invalid_string_position
call fcn.0048f3ef
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x46f15b
lea eax, [ebp - 0x64]
movzx eax, word [eax + ecx*2]
mov edx, 0x5c
cmp dx, ax
je 0x46f173
mov ecx, 0x2f
cmp cx, ax
jne 0x46f185
push eax
lea esi, [ebp - 0x64]
call fcn.004196c0
mov esi, dword [ebp - 0xdc]
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00475070
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x1c], ebx
je 0x46f1b4
push 1
push 0x4c4f30
lea ecx, [ebp - 0x64]
call fcn.00410dc0
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c]
push edx
lea ecx, [ebp - 0x64]
call fcn.00410cb0
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], 8
jb 0x46f1ca
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x54], ebx
je 0x46f24d
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x46f1e7
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x46f24d
push 0xffffffffffffffff
xor ecx, ecx
push ebx
lea edx, [ebp - 0x64]
mov word [ebp - 0x48], cx
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
call fcn.0040f1f0
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 0x12
mov dword [ebp - 0xd8], 2
jmp 0x46f27b
push ebx
xor edx, edx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0x4c42e8
mov ecx, esi
mov word [esi], dx
call fcn.0040e680
mov dword [ebp - 0xd8], 1
jmp 0x46f302
push ebx
xor eax, eax
push 0x4c42e8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.0040e680
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0x13
mov dword [ebp - 0xd8], 4
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov word [esi], cx
push eax
mov ecx, esi
call fcn.00409ad0
mov eax, dword [ebp - 0xd8]
or eax, 1
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 0x12
test al, 4
je 0x46f2cd
and dword [ebp - 0xd8], 0xfffffffb
cmp dword [ebp - 0x18], 8
jb 0x46f2c1
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 2
test byte [ebp - 0xd8], 2
je 0x46f302
and dword [ebp - 0xd8], 0xfffffffd
cmp dword [ebp - 0x34], 8
jb 0x46f2f6
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00490458
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x6c], 8
jb 0x46f318
mov eax, dword [ebp - 0x80]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov byte [ebp - 4], bl
cmp dword [ebp - 0x50], 8
jb 0x46f339
mov edx, dword [ebp - 0x64]
push edx
call fcn.00490458
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov eax, esi
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.004911d1
mov esp, ebp
pop ebp
ret