Function at 0x140032c90
Capabilities:
Check mutex on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140092008]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [0x140095728]
mov rsi, r9
mov r15, qword [rsp + 0x118]
mov r12, rcx
mov r14, qword [rsp + 0x120]
mov rdi, qword [rsp + 0x128]
test rax, rax
jne 0x140032cf3
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateMutexW]
mov qword [0x140095728], rax
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
mov rcx, qword [0x140095728]
xor r13d, r13d
cmp dword [0x1400956bc], 1
mov ebx, r13d
sete bl
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseMutex]
test ebx, ebx
jne 0x140032d2c
mov eax, 0xf0001000
jmp 0x140032f59
test rsi, rsi
je 0x140032f54
test r12, r12
je 0x140032f54
test r14, r14
je 0x140032f54
test r15, r15
je 0x140032d4f
mov qword [r15], r13
mov rcx, r12
call fcn.140031c20
mov rbx, rax
test rax, rax
jne 0x140032d69
mov eax, 0xf000100c
jmp 0x140032f59
mov qword [rax + 0x20], r13
lea rcx, str.Beihai_SendAndReceive__x_n
mov dword [rsp + 0x40], reloc.WS2_32.dll_listen
mov rdx, rbx
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x48], rax
mov eax, dword [r14]
mov dword [rsp + 0x58], eax
mov qword [rsp + 0x50], 1
call fcn.140031980
mov r9d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], r12
mov r8, rsi
lea rcx, [rsp + 0x30]
lea edx, [r9 + 0x1c]
call fcn.140032350
mov r8d, dword [rbx + 0xc]
mov esi, eax
test eax, eax
jne 0x140032dc6
mov esi, r8d
mov rdx, rbx
mov qword [rsp + 0xf8], rbp
lea rcx, str.Beihai_SendAndReceive__x_ret__x_n
call fcn.140031980
test esi, esi
jne 0x140032e97
mov rbp, qword [rbx + 0x20]
test rbp, rbp
je 0x140032e90
mov eax, dword [rbx + 0x10]
cmp eax, 4
jb 0x140032e90
test rdi, rdi
je 0x140032e22
mov ecx, dword [rbp]
mov dword [rdi], ecx
movzx eax, byte [rdi + 3]
mov byte [rdi + 3], cl
mov byte [rdi], al
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi + 2]
mov byte [rdi + 2], al
mov byte [rdi + 1], cl
mov eax, dword [rbx + 0x10]
lea edi, [rax - 4]
test edi, edi
je 0x140032e88
test r15, r15
je 0x140032e83
cmp dword [r14], edi
jb 0x140032e83
mov rax, qword [0x140095748]
mov ecx, edi
test rax, rax
je 0x140032e52
mov r8d, 0x456
lea rdx, str.d:_buildagent_prod_8811p41326310928_servicesdal_src_thirdparty_bhplugin1_beihai_toolsjhi_lib_beihaiplugin.cpp
call rax
jmp 0x140032e57
call fcn.14004e41c
mov qword [r15], rax
test rax, rax
je 0x140032e76
mov r8d, edi
lea rdx, [rbp + 4]
mov rcx, rax
call fcn.140040ff0
mov dword [r14], edi
jmp 0x140032f13
mov esi, 0xf0001004
mov dword [r14], edi
jmp 0x140032f13
mov esi, 0x403
mov dword [r14], edi
jmp 0x140032f13
mov esi, 0xf0001006
jmp 0x140032f13
cmp esi, 0x403
jne 0x140032ef4
mov rdx, qword [rbx + 0x20]
test rdx, rdx
je 0x140032f13
cmp dword [rbx + 0x10], 8
jne 0x140032f13
test rdi, rdi
je 0x140032ece
mov ecx, dword [rdx]
mov dword [rdi], ecx
movzx eax, byte [rdi + 3]
mov byte [rdi + 3], cl
mov byte [rdi], al
movzx eax, byte [rdi + 1]
movzx ecx, byte [rdi + 2]
mov byte [rdi + 2], al
mov byte [rdi + 1], cl
mov ecx, dword [rdx + 4]
mov dword [r14], ecx
movzx eax, byte [r14 + 3]
mov byte [r14 + 3], cl
mov byte [r14], al
movzx eax, byte [r14 + 1]
movzx ecx, byte [r14 + 2]
mov byte [r14 + 2], al
mov byte [r14 + 1], cl
jmp 0x140032f13
cmp esi, 0x401
je 0x140032f0c
cmp esi, 0x106
je 0x140032f0c
cmp esi, 0x201
jne 0x140032f13
mov dword [rbx + 0x34], 1
mov rax, qword [0x140095730]
mov rcx, qword [rbx + 0x20]
mov rbp, qword [rsp + 0xf8]
test rax, rax
je 0x140032f3c
mov r8d, 0x46e
lea rdx, str.d:_buildagent_prod_8811p41326310928_servicesdal_src_thirdparty_bhplugin1_beihai_toolsjhi_lib_beihaiplugin.cpp
call rax
jmp 0x140032f41
call fcn.140047100
mov rdx, r12
mov qword [rbx + 0x20], r13
mov rcx, rbx
call fcn.140031c80
mov eax, esi
jmp 0x140032f59
mov eax, 0xf0001005
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14003ce20
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret