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

Disassembly:
push 0x40
mov eax, 0x50ae96
call fcn.004fb730
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], esi
cmp dword [ebx + 0x14], 8
jb 0x4b85bc
mov eax, dword [ebx]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi + 0x18], eax
test eax, eax
jne 0x4b85f1
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4b85d7
mov eax, dword [ebx]
push eax
push dword [esi + 8]
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [edi + 0x18], eax
test eax, eax
je 0x4b87f4
lea esi, [edi + 0xc]
mov dword [ebp - 0x4c], esi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
and dword [ebp - 4], 0
mov edx, ebx
push str._Data
lea ecx, [ebp - 0x28]
call fcn.004acf8b
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x4b861d
mov eax, dword [eax]
push eax
push 0
push 1
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00455d7e
cmp dword [edi + 0x1c], 0
je 0x4b8706
push str._Map
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004acf8b
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x4b865f
mov eax, dword [eax]
push eax
push 0x100000
push 0
push 0x8000004
push dword [ebp - 0x48]
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00455d7e
cmp dword [edi + 0x20], 0
jne 0x4b86cb
push str._Map
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004acf8b
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x4b86a7
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x48]
push dword [eax + 8]
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 0x20], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00455d7e
cmp dword [edi + 0x20], 0
je 0x4b8706
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x100000
push 0
push 0
push 6
push dword [edi + 0x20]
cmp eax, 0xb7
sete byte [ebp - 0x41]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x24], eax
test eax, eax
je 0x4b8706
cmp byte [ebp - 0x41], 0
jne 0x4b8706
mov ecx, edi
mov byte [eax + 8], 0
call fcn.004b8da5
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
cmp dword [edi + 0x1c], 0
je 0x4b87f8
cmp dword [edi + 0x20], 0
jne 0x4b87f8
cmp dword [ebp + 0x10], 0
je 0x4b87f8
and dword [ebp - 0x4c], 0
mov esi, dword [ebp - 0x48]
push str._Map
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.004acf8b
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x4b8754
mov eax, dword [eax]
push eax
push 0x100000
push 0
push 0x8000004
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x20], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00455d7e
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4b87db
push str._Map
mov edx, ebx
lea ecx, [ebp - 0x40]
call fcn.004acf8b
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 8
jb 0x4b879e
mov eax, dword [eax]
push eax
push dword [esi + 8]
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [edi + 0x20], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00455d7e
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4b87db
mov eax, dword [ebp - 0x4c]
add eax, 0x64
mov dword [ebp - 0x4c], eax
cmp eax, dword [ebp + 0x10]
jge 0x4b87f4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4b8736
push 0x100000
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x24], eax
test eax, eax
jne 0x4b87f8
xor al, al
jmp 0x4b87ff
cmp dword [edi + 0x24], 0
setne al
call fcn.004fb6da
ret 0xc