Function at 0x4e7720
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537010
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5aeabc]
test eax, eax
jne 0x4e7a70
push 0x3f
push eax
mov byte [ebp - 0x50], al
lea eax, [ebp - 0x4f]
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x50]
push 0xa
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004fdae5
add esp, 0xc
mov dword [ebp - 0x274], 0xf
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x278], 0
mov byte [ebp - 0x288], 0
push 0x18
push str.chrome.statistics.share.
call fcn.00417e30
push 0x18
push str.chrome.statistics.mutex.
lea ecx, [ebp - 0x270]
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], 0xf
mov dword [ebp - 0x260], 0
mov byte [ebp - 0x270], 0
call fcn.00417e30
cmp byte [ebp - 0x50], 0
mov byte [ebp - 4], 1
jne 0x4e77f0
xor ecx, ecx
jmp 0x4e77ff
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e77f6
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x288]
call fcn.004176b0
cmp byte [ebp - 0x50], 0
jne 0x4e7819
xor ecx, ecx
jmp 0x4e7829
lea ecx, [ebp - 0x50]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e7820
sub ecx, edx
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x270]
call fcn.004176b0
cmp dword [ebp - 0x25c], 0x10
lea eax, [ebp - 0x270]
cmovae eax, dword [ebp - 0x270]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4e79ec
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4e79ec
cmp dword [ebp - 0x274], 0x10
lea eax, [ebp - 0x288]
cmovae eax, dword [ebp - 0x288]
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
je 0x4e79ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e78e8
push 4
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4e78d5
mov eax, dword [ecx]
push ecx
mov dword [0x5aeabc], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e7a17
push 0x340
call fcn.004b2155
add esp, 4
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4e790c
mov ecx, eax
call fcn.004e58b0
jmp 0x4e790e
xor eax, eax
push 4
push 0
push 0
push 0xf001f
push esi
mov dword [0x5aeabc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
je 0x4e7939
mov eax, dword [0x5aeabc]
push ecx
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [0x5aeac4]
test al, 1
jne 0x4e795d
or eax, 1
mov dword [0x5aeac0], esi
push 0x538300
mov dword [0x5aeac4], eax
call fcn.004f161b
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x258], ax
lea eax, [ebp - 0x256]
push eax
call fcn.004f2e30
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4e79e3
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e7a17
push 0x340
call fcn.004b2155
add esp, 4
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e79dc
mov ecx, eax
call fcn.004e58b0
push edi
mov dword [0x5aeabc], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e7a17
xor eax, eax
mov dword [0x5aeabc], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x4e7a17
push 0x340
call fcn.004b2155
add esp, 4
mov dword [ebp - 0x28c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x4e7a10
mov ecx, eax
call fcn.004e58b0
jmp 0x4e7a12
xor eax, eax
mov dword [0x5aeabc], eax
test edi, edi
je 0x4e7a22
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x25c], 0x10
jb 0x4e7a39
push dword [ebp - 0x270]
call fcn.004b217d
add esp, 4
cmp dword [ebp - 0x274], 0x10
mov dword [ebp - 0x25c], 0xf
mov dword [ebp - 0x260], 0
mov byte [ebp - 0x270], 0
jb 0x4e7a6b
push dword [ebp - 0x288]
call fcn.004b217d
add esp, 4
mov eax, dword [0x5aeabc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f225b
mov esp, ebp
pop ebp
ret