Function at 0x42a340
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
cmp ecx, edx
jb 0x42a73f
mov eax, edx
and eax, 0x1f
jne 0x42a73f
add ecx, 0xfffffff8
lea esi, [edx + 0x14]
xor ebx, ebx
mov eax, ecx
xor edx, edx
div esi
cmp esi, ecx
ja 0x42a73f
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov dword [esi], edx
mov dword [edx], 0
lea ecx, [eax + eax*4]
lea ecx, [ecx*4 + 8]
mov dword [ebp - 0x2c], ecx
mov ecx, edx
shr ecx, 0xe
xor edi, edi
inc edi
shl edi, cl
mov dword [ebp - 0x44], edi
mov ecx, edx
shr ecx, 0x13
mov dword [ebp - 0x40], ecx
shr edx, 0x15
mov dword [ebp - 0x3c], edx
lea ecx, [esi + 4]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
push 0x24
call fcn.00494aa6
add esp, 4
mov edi, eax
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
xorps xmm0, xmm0
movups xmmword [edi + 0xc], xmm0
push 0xc
call fcn.00494aa6
add esp, 4
mov dword [eax + 8], edi
mov ecx, dword [ebp - 0x38]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 4]
mov dword [eax], ecx
mov dword [ecx + 4], eax
mov dword [esi + 4], eax
inc dword [esi + 0xc]
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, eax
cmp dword [edi], eax
mov dword [ebp - 0x10], edi
je 0x42a451
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [edi]
inc eax
cmp eax, 2
jae 0x42a74b
mov eax, ebx
inc eax
cmp eax, 2
jb 0x42a445
mov eax, dword [ebp - 0x10]
mov dword [eax], ebx
call fcn.00459380
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
lea esi, [ecx + eax]
add esi, 0x10
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push 0x100002
push esi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42a85b
sub esp, 0x10
xorps xmm0, xmm0
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, dword [ebp - 0x10]
mov edi, eax
cmp dword [esi + 4], eax
je 0x42a6fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 4]
inc eax
cmp eax, 2
jae 0x42a78e
mov eax, edi
inc eax
cmp eax, 2
jb 0x42a4ca
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
call fcn.00459380
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
lea eax, [esi + ebx]
add eax, 0x14
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
mov edi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push 0x100002
push dword [ebp - 0x1c]
push edi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42a85b
mov eax, dword [ebp - 0x2c]
mov dword [esi + ebx + 8], eax
mov dword [esi + ebx + 0xc], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x42a865
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
test dword [ecx*4 + 0x518914], eax
jne 0x42a873
mov eax, dword [ebp - 0x3c]
mov byte [eax + 0x520914], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 8], eax
mov eax, dword [ecx + 0x14]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x42a883
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
add eax, ecx
add eax, 8
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x42a891
shr eax, 0x15
mov byte [eax + 0x520914], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x14]
add eax, ecx
add eax, 8
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x14], eax
mov edi, dword [ecx + 0x10]
mov ecx, edi
shr ecx, 0xe
xor esi, esi
inc esi
shl esi, cl
mov ebx, edi
shr ebx, 0x13
mov edx, dword [ebx*4 + 0x518914]
bt edx, ecx
mov ecx, dword [eax]
lea eax, [edi + ecx]
mov dword [ebp - 0x14], eax
jb 0x42a89f
shr edi, 0x15
mov byte [edi + 0x520914], 1
mov edx, dword [ebp - 0x14]
mov eax, edx
shr eax, 0xe
mov ecx, edx
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x518914]
bt ecx, eax
jb 0x42a862
mov edi, dword [ebp - 0x10]
add edi, 0xc
mov ecx, edx
shr ecx, 0xe
xor esi, esi
inc esi
shl esi, cl
mov ebx, edx
shr ebx, 0x13
mov eax, dword [ebx*4 + 0x518914]
bt eax, ecx
jb 0x42a8d2
mov eax, edx
shr eax, 0x15
mov byte [eax + 0x520914], 1
mov eax, dword [edi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
jb 0x42a8f8
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 0x18]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x518914]
bt edx, ecx
mov ecx, dword [ebp - 0x20]
mov edi, dword [ecx + 0x1c]
jb 0x42a906
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x518914]
bt ecx, eax
jb 0x42a914
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x520914], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], edi
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x18]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 0x2c]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov ecx, dword [esi + 0x10]
push edx
push 0x412690
push dword [edx]
push esi
call fcn.0042a940
add dword [ebp - 0x24], 0x14
dec dword [ebp - 0x34]
jne 0x42a3c6
jmp 0x42a702
mov dword [ebp - 0x18], edi
jmp 0x42a4da
mov edi, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], eax
add edi, 4
mov ebx, dword [0x52613c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push 0x100002
push edi
push dword [ebp - 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x42a85b
mov eax, dword [esi]
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
mov bl, 1
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov dword [ebp - 0x1c], esi
call fcn.00459380
mov esi, dword [ebp - 0x10]
mov eax, dword [esi]
cmp dword [0x523df0], 0
mov dword [ebp - 0x18], eax
je 0x42a7cf
mov eax, dword [0x523df0]
mov dword [ebp - 0x28], eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [section..00cfg]
mov ecx, dword [ebp - 0x28]
push dword [ebp - 0x18]
call edi
mov dword [esi], 0
mov esi, dword [ebp - 0x1c]
jmp 0x42a433
call fcn.00459380
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 4]
cmp dword [0x523df0], 0
mov dword [ebp - 0x18], eax
je 0x42a80f
mov eax, dword [0x523df0]
mov dword [ebp - 0x1c], eax
mov eax, dword [eax]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
call dword [section..00cfg]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [ebp - 0x28]
mov dword [esi + 4], 0
jmp 0x42a4b7
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x50511c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a922
mov ecx, eax
cmp eax, sym.opera.exe_GetHandleVerifier
je 0x42a84f
call dword [section..00cfg]
call ecx
push 0
push eax
call fcn.00426270
add esp, 8
mov esi, dword [ebp - 0x10]
jmp 0x42a764
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x50511c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a92a
mov ecx, eax
cmp eax, sym.opera.exe_GetHandleVerifier
je 0x42a855
call dword [section..00cfg]
call ecx
push 0
push eax
call fcn.00426270
add esp, 8
mov esi, dword [ebp - 0x10]
jmp 0x42a7a5
push 1
push 0
jmp 0x42a7ff
push 1
push 0
jmp 0x42a83f
xor ebx, ebx
jmp 0x42a73f
int3
push eax
call fcn.00454d60
add esp, 4
jmp 0x42a543
push dword [ebp + 8]
call fcn.00455550
add esp, 4
jmp 0x42a560
push eax
call fcn.00454d60
add esp, 4
jmp 0x42a58c
push eax
call fcn.00455550
add esp, 4
jmp 0x42a5bb
mov dword [ebp - 0x18], ecx
push edi
call fcn.00455550
add esp, 4
test dword [ebx*4 + 0x518914], esi
je 0x42a600
push dword [ebp - 0x18]
push edi
call fcn.00492ca0
add esp, 8
test al, al
mov edx, dword [ebp - 0x14]
jne 0x42a61d
int3
push edx
call fcn.00455550
add esp, 4
test dword [ebx*4 + 0x518914], esi
je 0x42a64e
push dword [ebp - 0x14]
call fcn.00454d60
add esp, 4
jmp 0x42a64e
push eax
call fcn.00454d60
add esp, 4
jmp 0x42a66a
push eax
call fcn.00454d60
add esp, 4
jmp 0x42a696
push edi
call fcn.00455550
add esp, 4
jmp 0x42a6bc
xor eax, eax
push eax
jmp 0x42a7fe
xor eax, eax
push eax
jmp 0x42a83e