Function at 0x42aad0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb8
mov eax, dword [0x47900c]
xor eax, esp
mov dword [esp + 0xb4], eax
mov eax, dword [0x47c924]
xorps xmm0, xmm0
mov dword [esp + 4], edx
movaps xmmword [esp + 8], xmm0
movaps xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jne 0x42ab1f
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x47c924], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x47c924]
xor eax, eax
cmp dword [0x47c920], 1
sete al
mov dword [esp + 0x4c], eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0x48], 0
jne 0x42ab64
mov eax, 0xf0001000
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42ad3f
cmp dword [esp + 0xc], 0
je 0x42ad3f
cmp dword [ebp + 8], 0
je 0x42ad3f
test edi, edi
je 0x42ad3f
lea edx, [esp + 0x68]
mov ecx, esi
call fcn.00429a40
test eax, eax
je 0x42ad3f
lea eax, [esp + 0x10]
mov dword [esp + 0x60], 5
push eax
push str.Beihai_Query__x_n
call fcn.00403910
mov ecx, dword [0x479a88]
add esp, 8
mov eax, dword [0x479a8c]
mov dword [esp + 0x48], ecx
add ecx, 1
mov dword [esp + 0x4c], eax
push 0xffffffffffffffff
push dword [0x47c930]
adc eax, 0
mov dword [0x479a88], ecx
mov dword [0x479a8c], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x48]
push eax
call fcn.0042b080
lea ecx, [esp + 0x10]
mov dword [eax], ecx
mov eax, ecx
push eax
push dword [esp + 0x50]
push dword [esp + 0x50]
push str.rrmap_add__llx__x_n
call fcn.00403910
add esp, 0x10
push dword [0x47c930]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esp + 0x4c]
mov edx, 0x28
lea ecx, [esp + 0x54]
push dword [esp + 0x4c]
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00429c10
mov ecx, eax
mov eax, dword [esp + 0x28]
test ecx, ecx
push eax
cmove ecx, eax
lea eax, [esp + 0x24]
push eax
push str.Beihai_Query__x_ret__x_n
mov dword [esp + 0x28], ecx
call fcn.00403910
add esp, 0x1c
test ecx, ecx
jne 0x42acc4
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x42ad0e
cmp dword [esp + 0x28], ecx
je 0x42ad0a
mov eax, dword [0x47b7e0]
lea ecx, [esi + 1]
mov dword [esp + 0x48], eax
test eax, eax
je 0x42aca1
push 0x4d5
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push ecx
mov ecx, eax
call dword [0x45e29c]
call dword [esp + 0x54]
add esp, 0xc
jmp 0x42acaa
push ecx
call fcn.004443a0
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x42ad03
push esi
push dword [esp + 0x2c]
push eax
call fcn.00437eb0
mov eax, dword [edi]
add esp, 0xc
mov byte [esi + eax], 0
mov edi, dword [esp + 0xc]
mov esi, dword [0x47b7dc]
test esi, esi
je 0x42ad1d
push 0x4e3
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push dword [esp + 0x30]
mov ecx, esi
call dword [0x45e29c]
call esi
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov edi, 0xf0001004
jmp 0x42acc8
test esi, esi
jne 0x42ad16
mov dword [edi], 0
jmp 0x42acc4
mov edi, 0xf0001006
jmp 0x42acc8
push dword [esp + 0x28]
call fcn.0043da60
add esp, 4
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
mov eax, 0xf0001005
pop edi
pop esi
xor ecx, esp
call fcn.00434098
mov esp, ebp
pop ebp
ret