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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59cf5d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 4], 0
mov byte [ebp - 0xd], 0
jne 0x4671aa
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4671c8
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 4], 0
test edx, edx
je 0x466f81
test edx, 0xffff0000
jne 0x466f66
movzx eax, dx
lea ecx, [ebp - 0x14]
push eax
call fcn.00429d30
jmp 0x466f8d
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x466f70
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466f70
sub ecx, esi
sar ecx, 1
jmp 0x466f83
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0042a000
mov esi, dword [ebp - 0x14]
push esi
push 0x2000
push 0
push 4
push 0
push 0xffffffffffffffff
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
test eax, eax
je 0x467192
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x467192
push 0
push 0
push 0
push 0
push 0x80000004
push 6
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 0x2000
push 0
push 0
push 0xf001f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 4], eax
test eax, eax
jne 0x46701d
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4671aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4671aa
push 0x63cb74
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042af40
add esp, 0xc
push dword [ebp - 0x18]
mov byte [ebp - 4], 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx + 8], eax
test eax, eax
je 0x46718d
call edi
cmp eax, 0xb7
je 0x46718d
push 0
push 0
push 0
push 0
push 0x80000004
push 6
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 0x63cb7c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042af40
add esp, 0xc
push dword [ebp - 0x1c]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 0xc], eax
test eax, eax
je 0x46713f
call edi
cmp eax, 0xb7
je 0x46713f
push 0
push 0
push 0
push 0
push 0x80000004
push 6
push dword [ebx + 0xc]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
mov byte [ebp - 0xd], 1
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4670e8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x467102
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x46711e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
push str.70_tKShareMemory::create_tKShareMemory::create_ok__name:_ws
push str.H:pub_9qls_rc_bug_mas_v12_2407Coding_support_newsetup_srccommonapponlyoneksharememory.cpp
push str._INFO_
push 0x63cbb0
call fcn.0046bb20
add esp, 0x14
jmp 0x4671b1
mov edx, dword [ebp - 0x1c]
or edi, 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46715c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x467176
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4671aa
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4671aa
or edi, 0xffffffff
jmp 0x46715c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4671aa
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, ebx
call fcn.00466c10
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00429b00
int3