Function at 0x425600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [0x511014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0x38], 0
je 0x42593e
mov edi, ecx
xor esi, esi
dec esi
lea ecx, [ebp - 0x2c]
mov dword [ecx], esi
mov dword [ecx + 4], esi
lea edx, [edi + 0xc]
push 0x10
call fcn.004259b0
add esp, 4
mov dword [ebp - 0x40], edi
lea ebx, [ebp - 0x38]
mov dword [ebx], esi
mov dword [ebx + 4], esi
xor esi, esi
mov ecx, ebx
mov edx, dword [ebp - 0x40]
push esi
call fcn.004259b0
add esp, 4
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x2c]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov esi, dword [ebx]
mov ecx, dword [ebx + 4]
mov edi, dword [ebp - 0x40]
mov bl, byte [edi + 0x3a]
mov dword [ebp - 0x48], edx
cmp edx, eax
jne 0x425677
cmp esi, ecx
je 0x42596d
mov edx, ebx
sub ecx, esi
sar ecx, 3
mov ebx, dword [ebp - 0x48]
sub eax, ebx
sar eax, 3
movzx edx, dl
mov edi, esi
lea esi, [ebp - 0x3c]
push esi
mov esi, edi
push edi
push ecx
xor ecx, ecx
push ecx
push ecx
push ebx
push eax
push edx
mov ebx, dword [ebp - 0x40]
push dword [ebx + 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateRestrictedToken]
test eax, eax
mov dword [ebp - 0x54], esi
je 0x425948
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x42585d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp edi, 0xffffffff
je 0x425923
call fcn.00459380
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp - 0x40]
cmp byte [ebx + 0x3a], 0
mov dword [ebp - 0x44], edi
je 0x42572f
cmp byte [ebx + 0x3b], 0
je 0x42572f
lea eax, [ebp - 0x1c]
movaps xmm0, xmmword [0x506cc0]
movups xmmword [eax - 4], xmm0
push eax
push str.SeChangeNotifyPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x425930
lea eax, [ebp - 0x20]
mov dword [eax + 0xc], 4
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x425930
cmp byte [ebx + 0x39], 0
je 0x425956
push edi
call fcn.00425bc0
add esp, 4
test al, al
je 0x425930
mov esi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
cmp esi, eax
jne 0x425864
push 0x10000000
push edi
call fcn.00425aa0
add esp, 8
test al, al
je 0x425930
push dword [ebx + 0x34]
push edi
call fcn.00425e60
add esp, 8
test eax, eax
jne 0x425936
lea eax, [ebp - 0x20]
mov dword [eax], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call esi
mov ebx, eax
call esi
xor ecx, ecx
push ecx
mov dword [ebp - 0x40], 0
push ecx
push 0xf01ff
lea ecx, [ebp - 0x20]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x425930
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x20]
cmp dword [esi], ebx
je 0x4257f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4258cc
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4257e9
mov dword [esi], ebx
call fcn.00459380
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x44]
inc eax
cmp eax, 2
jb 0x425824
call fcn.00459380
cmp dword [0x523df0], 0
je 0x4258e6
mov ebx, dword [0x523df0]
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [section..00cfg]
mov ecx, ebx
push dword [ebp - 0x44]
call esi
mov eax, dword [ebp - 0x54]
test eax, eax
mov esi, dword [ebp - 0x40]
je 0x425837
push eax
call fcn.00494aa1
add esp, 4
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x425847
push eax
call fcn.00494aa1
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00496ce3
mov eax, esi
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret 4
xor edi, edi
jmp 0x4256dc
mov dword [ebp - 0x4c], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x50], eax
mov ebx, dword [esi + 0x10]
xor eax, eax
dec eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.004249e0
add esp, 8
cmp byte [ebp - 0x20], 0
je 0x425930
mov ecx, edi
lea edx, [ebp - 0x1c]
push ebx
push dword [ebp - 0x50]
push esi
call fcn.00425c90
add esp, 0xc
mov ebx, eax
cmp byte [ebp - 0x20], 0
je 0x4258b5
lea ecx, [ebp - 0x1c]
call fcn.00424c80
test bl, bl
mov ebx, dword [ebp - 0x40]
je 0x425930
add esi, 0x14
mov eax, dword [ebp - 0x4c]
cmp esi, eax
je 0x425758
jmp 0x425867
call fcn.00459380
push dword [esi]
call fcn.0048c780
add esp, 4
mov dword [esi], 0
jmp 0x4257da
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x50511c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4259a3
mov ecx, eax
cmp eax, sym.opera.exe_GetHandleVerifier
je 0x42592a
call dword [section..00cfg]
call ecx
push 0
push eax
call fcn.00426270
add esp, 8
jmp 0x42580b
xor edi, edi
jmp 0x4256d2
push 1
push 0
jmp 0x425916
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
jmp 0x4257f0
mov esi, 0x3f0
jmp 0x425847
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
jmp 0x425824
push 0x10000000
push 0
push 0xa
push edi
call fcn.004ed980
add esp, 0x10
jmp 0x425742
mov ecx, esi
test bl, bl
mov dl, 1
jne 0x425679
mov ebx, dword [ebp - 0x40]
mov eax, dword [ebx + 0x24]
sub esp, 0x18
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x14], ecx
movaps xmm0, xmmword [0x509320]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
jmp 0x4256a6
xor eax, eax
push eax
jmp 0x425915