Function at 0x40c270
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc6d9
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x51ec70]
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 esi, dword [ebp + 8]
xor ebx, ebx
push esi
push str.Opera.exe
mov dword [ebp - 0x4c], ebx
call fcn.0040a920
add esp, 8
test al, al
je 0x40c2d4
cmp dword [esi + 0x10], ebx
je 0x40c2d4
cmp dword [esi + 0x14], 8
jb 0x40c2c2
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c2d4
mov al, 1
jmp 0x40c491
push 0
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00414c60
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 0
push eax
push str.InstallLocation
push str.Opera
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0040b380
lea eax, [ebp - 0x48]
push eax
push str.InstallLocation
push str.Opera
push SysReAllocString
call fcn.0040b380
add esp, 0x20
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
lea ecx, [ebp - 0x28]
mov word [ebp - 0x28], ax
push eax
push 0x4f1708
call fcn.004197d0
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 1
mov esi, dword [eax]
cmp esi, eax
je 0x40c435
lea edi, [esi + 0x20]
xor eax, eax
mov byte [ebp - 4], 2
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x40]
lea eax, [edi + 0x10]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x50], eax
or ebx, 1
mov eax, dword [eax]
add eax, 0xd
mov dword [ebp - 0x2c], 7
push eax
mov dword [ebp - 0x4c], ebx
call fcn.0041d190
cmp dword [edi + 0x14], 8
jb 0x40c393
mov edi, dword [edi]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x40]
push dword [eax]
push edi
call fcn.00419500
push 0xd
push str.launcher.exe
lea ecx, [ebp - 0x40]
call fcn.00419500
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c3ea
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c3e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4ad
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x40]
and ebx, 0xfffffffe
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x40c41f
mov ecx, edx
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40c465
mov esi, dword [esi]
cmp esi, dword [ebp - 0x48]
jne 0x40c356
xor bl, bl
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40c473
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40c469
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c4ad
jmp 0x40c469
mov bl, 1
jmp 0x40c437
push edx
push ecx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004076f0
mov al, bl
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.004d761c
mov esp, ebp
pop ebp
ret
call fcn.004cb910
int3