Function at 0x42a740
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x47900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x8c], eax
mov edi, ecx
mov eax, edi
mov dword [ebp - 0x88], esi
cdq
mov dword [ebp - 0x90], eax
mov eax, dword [0x47c924]
mov dword [ebp - 0x80], edx
test eax, eax
jne 0x42a79c
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 0x42a7d7
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
cmp dword [ebp - 0x7c], 0
je 0x42aab6
test edi, edi
je 0x42aab6
mov ebx, dword [ebp - 0x84]
test ebx, ebx
je 0x42aab6
test esi, esi
je 0x42a801
mov dword [esi], 0
push dword [ebp - 0x80]
mov edi, dword [ebp - 0x90]
push edi
call fcn.00429840
mov esi, eax
add esp, 8
test esi, esi
jne 0x42a82f
mov eax, 0xf000100c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434098
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0
mov dword [ebp - 0x60], 0xd
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebx]
push esi
push str.Beihai_SendAndReceive__x_n
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], eax
call fcn.00403910
push dword [ebp - 0x80]
mov edx, 0x2c
lea ecx, [ebp - 0x70]
push edi
push 0x10
push dword [ebp - 0x7c]
call fcn.00429c10
mov edi, eax
add esp, 0x18
mov eax, dword [esi + 8]
test edi, edi
jne 0x42a88b
mov edi, eax
push eax
push esi
push str.Beihai_SendAndReceive__x_ret__x_n
call fcn.00403910
add esp, 0xc
test edi, edi
jne 0x42a97d
mov ecx, dword [esi + 0x18]
mov dword [ebp - 0x74], ecx
test ecx, ecx
je 0x42a976
mov eax, dword [esi + 0xc]
cmp eax, 4
jb 0x42a976
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x42a8e2
mov ecx, dword [ecx]
mov dword [edx], ecx
mov al, byte [edx + 3]
mov byte [edx + 3], cl
mov cl, byte [edx + 2]
mov byte [edx], al
movzx eax, byte [edx + 1]
mov byte [edx + 2], al
mov byte [edx + 1], cl
mov eax, dword [esi + 0xc]
add eax, 0xfffffffc
mov dword [ebp - 0x7c], eax
je 0x42a96f
cmp dword [ebp - 0x88], 0
je 0x42a96a
cmp dword [ebx], eax
jb 0x42a96a
mov ecx, dword [0x47b7e0]
mov dword [ebp - 0x84], ecx
test ecx, ecx
je 0x42a927
push 0x456
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push eax
call dword [0x45e29c]
call dword [ebp - 0x84]
add esp, 0xc
jmp 0x42a930
push eax
call fcn.004443a0
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x88]
mov dword [eax], ecx
test ecx, ecx
je 0x42a95b
push dword [ebp - 0x7c]
mov eax, dword [ebp - 0x74]
add eax, 4
push eax
push ecx
call fcn.00437eb0
mov eax, dword [ebp - 0x7c]
add esp, 0xc
mov dword [ebx], eax
jmp 0x42a9f6
mov eax, dword [ebp - 0x7c]
mov edi, 0xf0001004
mov dword [ebx], eax
jmp 0x42a9f6
mov edi, 0x403
mov dword [ebx], eax
jmp 0x42a9f6
mov edi, 0xf0001006
jmp 0x42a9f6
cmp edi, 0x403
jne 0x42a9d7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x42a9f6
cmp dword [esi + 0xc], 8
jne 0x42a9f6
mov edx, dword [ebp - 0x8c]
test edx, edx
je 0x42a9bb
mov ecx, dword [eax]
mov dword [edx], ecx
mov al, byte [edx + 3]
mov byte [edx], al
movzx eax, byte [edx + 1]
mov byte [edx + 3], cl
mov cl, byte [edx + 2]
mov byte [edx + 2], al
mov eax, dword [ebp - 0x74]
mov byte [edx + 1], cl
mov ecx, dword [eax + 4]
mov dword [ebx], ecx
mov al, byte [ebx + 3]
mov byte [ebx + 3], cl
mov cl, byte [ebx + 2]
mov byte [ebx], al
movzx eax, byte [ebx + 1]
mov byte [ebx + 2], al
mov byte [ebx + 1], cl
jmp 0x42a9f6
cmp edi, 0x401
je 0x42a9ef
cmp edi, 0x106
je 0x42a9ef
cmp edi, 0x201
jne 0x42a9f6
mov dword [esi + 0x24], 1
mov ebx, dword [0x47b7dc]
mov eax, dword [esi + 0x18]
test ebx, ebx
je 0x42aa1d
push 0x46e
push str.D:_buildagent_cd_8816p4218434198_thirdparty_bhplugin1Beihai_toolsjhi_libBeihaiPlugin.cpp
push eax
mov ecx, ebx
call dword [0x45e29c]
call ebx
add esp, 0xc
jmp 0x42aa26
push eax
call fcn.0043da60
add esp, 4
mov eax, dword [ebp - 0x90]
push 0xffffffffffffffff
push dword [0x47c930]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x80]
mov dword [esi + 0x18], 0
mov dword [ebp - 0x74], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add dword [esi + 4], 0xffffffff
jne 0x42aa8e
cmp dword [esi + 0x24], 0
je 0x42aa8e
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, edi
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, edi
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