Function at 0x42ad80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x7c], eax
mov esi, ecx
mov eax, dword [0x47c924]
push edi
mov edi, edx
test eax, eax
jne 0x42adb7
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 ebx, ebx
cmp dword [0x47c920], 1
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x42adf2
mov eax, 0xf0001000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x42b067
test edi, edi
je 0x42b067
cmp dword [ebp - 0x7c], 0
mov ebx, dword [ebp + 0xc]
jne 0x42ae13
test ebx, ebx
jne 0x42b067
lea edx, [ebp - 0x58]
mov ecx, esi
call fcn.00429a40
test eax, eax
je 0x42b067
mov esi, dword [0x47b7e0]
test esi, esi
je 0x42ae4a
push 0x4fd
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push 0x28
mov ecx, esi
call dword [0x45e29c]
call esi
add esp, 0xc
jmp 0x42ae54
push 0x28
call fcn.004443a0
add esp, 4
mov esi, eax
test esi, esi
jne 0x42ae70
mov eax, 0xf0001004
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x42aeda
mov edi, dword [0x47b7dc]
test edi, edi
je 0x42aebb
push 0x504
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push esi
mov ecx, edi
call dword [0x45e29c]
call edi
add esp, 0xc
mov eax, 0xf000100a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
push esi
call fcn.0043da60
add esp, 4
mov eax, 0xf000100a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov ecx, esi
mov dword [esi + 4], 1
mov dword [esi + 0x20], 1
mov dword [esi + 0x24], 0
call fcn.00429920
mov ecx, eax
mov dword [ebp - 0x80], edx
push edx
push ecx
push esi
push str.Beihai_CreateSession__x__llx_n
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x60], 6
call fcn.00403910
push edx
push ecx
push ebx
push dword [ebp - 0x7c]
mov edx, 0x28
lea ecx, [ebp - 0x70]
call fcn.00429c10
mov ecx, dword [esi + 8]
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x42af33
mov ebx, ecx
push ecx
push esi
push str.Beihai_CreateSession__x_ret__x_n
call fcn.00403910
mov eax, dword [0x47b7dc]
add esp, 0xc
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x42af6c
push 0x517
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push ecx
mov ecx, eax
call dword [0x45e29c]
call dword [ebp - 0x7c]
add esp, 0xc
jmp 0x42af75
push ecx
call fcn.0043da60
add esp, 4
mov eax, dword [ebp - 0x74]
mov dword [esi + 0x18], 0
mov dword [ebp - 0x78], eax
push 0xffffffffffffffff
push dword [0x47c930]
test ebx, ebx
jne 0x42b007
mov dword [edi], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add dword [esi + 4], 0xffffffff
jne 0x42afdf
cmp dword [esi + 0x24], ebx
je 0x42afdf
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x78]
push eax
call fcn.0042b150
mov ecx, esi
call fcn.00429700
push dword [0x47c930]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x47c930]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add dword [esi + 4], 0xffffffff
mov eax, dword [esi + 0x1c]
push eax
jne 0x42b035
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea eax, [ebp - 0x78]
push eax
call fcn.0042b150
mov ecx, esi
call fcn.00429700
jmp 0x42b042
mov dword [esi + 0x24], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x47c930]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov dword [edi], 0
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xf0001005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434098
mov esp, ebp
pop ebp
ret