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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a141d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x639354]
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 0x466dba
call fcn.00429250
mov ecx, eax
test ecx, ecx
je 0x466dd8
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 0x466b91
test edx, 0xffff0000
jne 0x466b76
movzx eax, dx
lea ecx, [ebp - 0x14]
push eax
call fcn.00429d90
jmp 0x466b9d
mov ecx, edx
lea esi, [ecx + 2]
jmp 0x466b80
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466b80
sub ecx, esi
sar ecx, 1
jmp 0x466b93
xor ecx, ecx
push ecx
push edx
lea ecx, [ebp - 0x14]
call fcn.0042a060
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 0x466da2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xb7
je 0x466da2
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 0x466c2d
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x466dba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x466dba
push 0x641c90
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042afa0
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 0x466d9d
call edi
cmp eax, 0xb7
je 0x466d9d
push 0
push 0
push 0
push 0
push 0x80000004
push 6
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push 0x641c98
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0042afa0
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 0x466d4f
call edi
cmp eax, 0xb7
je 0x466d4f
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 0x466cf8
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 0x466d12
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 0x466d2e
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.D:pub_bh8h_rc_bug_mas_v12_2409Coding_support_newsetup_srccommonapponlyoneksharememory.cpp
push str._INFO_
push 0x641cc8
call fcn.0046b730
add esp, 0x14
jmp 0x466dc1
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 0x466d6c
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 0x466d86
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 0x466dba
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x466dba
or edi, 0xffffffff
jmp 0x466d6c
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x466dba
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, ebx
call fcn.00466820
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.00429b60
int3