Function at 0x4d1d10
Capabilities:
Check if file exists
Check mutex on windows
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x104
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x7a9040]
xor eax, ebp
mov dword [ebp - 0x10], eax
movsx eax, byte [edi + 0xb]
test eax, eax
jns 0x4d1d36
mov eax, dword [edi + 4]
test eax, eax
je 0x4d1db4
lea esi, [ebx + 4]
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
cmp ecx, 1
ja 0x4d1d5d
xor eax, eax
push str.oauc_registry_mutex
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x4d1dd2
lea ecx, [eax + 1]
cmp ecx, 1
ja 0x4d1dfd
mov edi, 0xffffff04
push 2
call fcn.005e3f20
add esp, 4
test al, al
je 0x4d1db9
lea esi, [ebp - 0xac]
mov ecx, esi
push 2
push 0xd0
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
call fcn.0053b2e0
lea eax, [ebp - 0xa4]
push 0x28
push str._AU__GS:_Couldnt_create_an_access_mutex
push eax
call fcn.005b72e0
add esp, 0xc
mov ecx, esi
call fcn.0053b7a0
jmp 0x4d1db9
mov edi, 0xffffff02
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00650d60
mov eax, edi
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x4d1de4
mov eax, dword [esi]
jmp 0x4d1d5d
push str.oauc_registry_mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi], eax
jmp 0x4d1d5d
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d1e57
xor edi, edi
inc edi
push 2
call fcn.005e3f20
add esp, 4
test al, al
je 0x4d1db9
lea esi, [ebp - 0xac]
mov ecx, esi
push 2
push 0xd5
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
call fcn.0053b2e0
lea eax, [ebp - 0xa4]
push 0x2d
push str._AU__GS:_Couldnt_get_hold_on_an_access_mutex
jmp 0x4d1da2
mov eax, esi
shr eax, 0x15
mov byte [eax + 0x7bc788], 1
jmp 0x4d1e88
mov ecx, esi
shr ecx, 0xe
mov eax, esi
shr eax, 0x13
mov dword [ebp - 0x108], eax
mov eax, dword [eax*4 + 0x7b4788]
mov dword [ebp - 0x10c], ecx
bt eax, ecx
mov dword [ebp - 0x110], esi
jae 0x4d1e49
push esi
call fcn.00545e50
add esp, 4
lea eax, [ebp - 0xad]
mov byte [eax], 0xff
lea esi, [ebp - 0xac]
push 0xdb
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
push str.SetData
push esi
call fcn.005e4620
add esp, 0x10
lea ecx, [ebp - 0xad]
push esi
call fcn.005344b0
cmp byte [ebx + 0x14], 0
mov dword [ebp - 0x100], ebx
jne 0x4d1ee5
lea eax, [ebx + 8]
push eax
call fcn.0052ccf0
add esp, 4
test al, al
je 0x4d1fc8
cmp byte [ebx + 0x16], 0
jne 0x4d1fc8
xor eax, eax
dec eax
lea esi, [ebp - 0xf8]
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], eax
pcmpeqd xmm0, xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi], xmm0
lea edx, [ebx + 8]
mov ecx, esi
call fcn.004d2280
mov ecx, esi
mov edx, edi
push dword [ebp + 0xc]
call fcn.004d23c0
add esp, 4
xor ecx, ecx
mov ebx, 0xffffff04
test al, al
cmovne ebx, ecx
jne 0x4d1f76
push 2
call fcn.005e3f20
add esp, 4
test al, al
je 0x4d1f76
lea esi, [ebp - 0xac]
mov ecx, esi
push 2
push 0xe5
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
call fcn.0053b2e0
lea eax, [ebp - 0xa4]
push 0x2d
push str._AU__GS:_Writing_to_a_fallback_storage_failed
push eax
call fcn.005b72e0
add esp, 0xc
mov ecx, esi
call fcn.0053b7a0
mov dword [ebp - 0xfc], ebx
mov eax, dword [ebp - 0x100]
mov bl, byte [eax + 0x14]
mov esi, dword [ebp - 0xb4]
test esi, esi
je 0x4d1faf
dec dword [esi + 4]
jne 0x4d1faf
mov eax, dword [esi]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x104], ecx
call dword [0x7a29f4]
mov ecx, esi
push 1
call dword [ebp - 0x104]
lea ecx, [ebp - 0xf8]
call fcn.005346a0
test bl, bl
lea esi, [ebp - 0xac]
jne 0x4d20c2
mov dword [ebp - 0xf8], 0xffffffff
mov ebx, dword [ebp + 0xc]
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x4d1fe0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4d212c
push esi
call fcn.004bfed0
add esp, 4
cmp byte [ebp - 0xa1], 0
jns 0x4d2000
mov esi, dword [ebp - 0xac]
sub esp, 0x24
xor eax, eax
mov dword [esp + 0x20], eax
lea ecx, [ebp - 0xf8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
movdqa xmm0, xmmword [0x7407d0]
movdqu xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp byte [ebp - 0xa1], 0
jns 0x4d204f
push dword [ebp - 0xac]
call fcn.006507ee
add esp, 4
test esi, esi
je 0x4d21f6
mov ebx, 0xffffff04
push 2
call fcn.005e3f20
add esp, 4
test al, al
je 0x4d20b0
lea edi, [ebp - 0xac]
mov ecx, edi
push 2
push 0x105
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
call fcn.0053b2e0
lea eax, [ebp - 0xa4]
push 0x27
push str._AU__GS:_Creating_reg_key_failed_with:
push eax
call fcn.005b72e0
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
push eax
call fcn.0047d0c0
mov ecx, edi
call fcn.0053b7a0
mov dword [ebp - 0xfc], ebx
test ebx, ebx
mov eax, dword [ebp - 0x100]
sete byte [eax + 0x15]
lea ecx, [ebp - 0xad]
call fcn.00534510
mov esi, dword [ebp - 0x110]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x108]
mov eax, dword [eax*4 + 0x7b4788]
mov ecx, dword [ebp - 0x10c]
bt eax, ecx
jae 0x4d20fc
push esi
call fcn.00545f70
add esp, 4
mov edi, dword [ebp - 0xfc]
jmp 0x4d1db9
cmp byte [edi + 0xb], 0
jns 0x4d210f
mov edi, dword [edi]
push edi
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
jmp 0x4d20b0
push esi
call fcn.004bfed0
add esp, 4
cmp byte [esi + 0xb], 0
jns 0x4d2141
mov esi, dword [ebp - 0xac]
lea eax, [ebp - 0xf8]
push eax
push 0x20006
push 0
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp byte [ebp - 0xa1], 0
jns 0x4d2174
push dword [ebp - 0xac]
call fcn.006507ee
add esp, 4
test esi, esi
je 0x4d2107
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
and eax, 0xfffffffe
xor ebx, ebx
cmp eax, 2
je 0x4d20b0
mov ebx, 0xffffff04
push 2
call fcn.005e3f20
add esp, 4
test al, al
je 0x4d20b0
lea esi, [ebp - 0xac]
mov ecx, esi
push 2
push 0x117
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
call fcn.0053b2e0
lea eax, [ebp - 0xa4]
push 0x29
push str._AU__GS:_Deleting_reg_value_failed_with:
push eax
call fcn.005b72e0
add esp, 0xc
mov ecx, eax
push edi
call fcn.0047d0c0
mov ecx, esi
jmp 0x4d20ab
xor ebx, ebx
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4d20b0
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x4d2203
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
cmp byte [edi + 0xb], 0
jns 0x4d220b
mov edi, dword [edi]
push eax
push ebx
push 1
push 0
push edi
push dword [ebp - 0xf8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4d21e3
mov ebx, 0xffffff04
push 2
call fcn.005e3f20
add esp, 4
test al, al
je 0x4d21e5
lea edi, [ebp - 0xac]
mov ecx, edi
push 2
push 0xff
push str.....operadesktopcommon_autoupdateupdatecheckerglobalstorage_win.cc
call fcn.0053b2e0
lea eax, [ebp - 0xa4]
push 0x28
push str._AU__GS:_Setting_reg_value_failed_with:
push eax
call fcn.005b72e0
add esp, 0xc
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
push eax
call fcn.0047d0c0
mov ecx, edi
call fcn.0053b7a0
jmp 0x4d21e5