Function at 0x1400104b0
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rbx
push rsi
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [str._h_r_]
mov rsi, rcx
lea rcx, str._h_r_
mov qword [rsp + 0x50], r13
mov r13, rdx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
lea rdx, [0x140119770]
mov qword [rbp + 0x38], rax
test rdx, 0xffffffffffff0000
jne 0x140010511
movzx ebx, dx
xor edx, edx
mov ecx, ebx
call fcn.140001110
test rax, rax
je 0x140010520
lea rcx, [rbp + 0x38]
mov r8d, ebx
mov rdx, rax
call fcn.140004fb0
jmp 0x140010520
lea rcx, [rbp + 0x38]
mov r8d, reloc.WS2_32.dll_inet_addr
call fcn.14000c510
lea rcx, [rbp - 0x30]
call fcn.14000f5d0
lea rcx, [rbp - 0x20]
mov rbx, rax
call fcn.1400a3220
lea rdx, [rbp + 0x38]
lea rcx, [rbp - 0x38]
mov r8, rax
call fcn.14000fe70
lea rcx, [rbp + 0x30]
mov r8, rbx
mov rdx, rax
call fcn.14000fac0
mov rdx, qword [rbp - 0x38]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010575
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp - 0x30]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010593
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rbp + 0x38]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400105b1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x30]
cmp dword [rax - 0x10], 0
jne 0x14001065c
lea rcx, [rbp - 0x28]
mov qword [rsp + 0x80], rdi
call fcn.14000f5d0
mov rdi, qword [rbp + 0x30]
mov rdx, qword [rax]
add rdi, 0xffffffffffffffe8
lea rcx, [rdx - 0x18]
cmp rcx, rdi
je 0x140010636
cmp dword [rdi + 0x10], 0
jl 0x140010629
mov rax, qword [rdi]
cmp qword [rcx], rax
jne 0x140010629
mov qword [rsp + 0x58], r12
call fcn.140001b90
mov ecx, ebx
mov r12, rax
lock xadd dword [rdi + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x140010619
mov rcx, qword [rdi]
mov rdx, rdi
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [r12 + 0x18]
mov r12, qword [rsp + 0x58]
mov qword [rbp + 0x30], rax
jmp 0x140010636
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp + 0x30]
call fcn.14000c510
mov rdx, qword [rbp - 0x28]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
mov rdi, qword [rsp + 0x80]
dec eax
test eax, eax
jg 0x14001065c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140117ea0]
lea rdx, [0x14011976c]
lea rcx, [rbp + 0x30]
call fcn.14000f750
lea r8, [rbp + 0x30]
lea rcx, [rbp - 0x40]
mov rdx, r13
call fcn.14000fb70
cmp qword [rsi], 0
mov r13, qword [rsp + 0x50]
jne 0x140010703
mov r8, qword [rbp - 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140010703
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x40]
mov qword [rsi], 0
add rdx, 0xffffffffffffffe8
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400106dd
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x30]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x1400106f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor al, al
add rsp, 0x60
pop rsi
pop rbx
pop rbp
ret
mov rdx, qword [rbp - 0x40]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140010721
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rbp + 0x30]
lea rdx, [rax - 0x18]
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x14001073d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
add rsp, 0x60
pop rsi
pop rbx
pop rbp
ret