Function at 0x180044a60
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x150
mov qword [rsp + 0x130], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
movaps xmmword [rax - 0x48], xmm6
mov rbx, r9
mov rdi, rcx
xor eax, eax
mov dword [rsp + 0x40], eax
test rcx, rcx
je 0x1800452d6
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1800452d6
test rdx, rdx
je 0x1800452d6
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1800452d6
test r8, r8
je 0x1800452d6
test rbx, rbx
je 0x1800452d6
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x1800452d6
lea rcx, [rsp + 0x48]
call fcn.180001700
nop
lea rcx, [rsp + 0x30]
call fcn.180001700
nop
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1800017e0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180002bf0
lea rdx, [0x180075b50]
lea rcx, [rsp + 0x48]
call fcn.180002c50
lea rdx, [0x180075b58]
lea rcx, [rsp + 0x30]
call fcn.180002c50
lea rcx, [rsp + 0x48]
call fcn.18000b4f0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.180044280
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180002bf0
nop
lea rcx, [rsp + 0x90]
call fcn.1800017c0
lea rcx, [rsp + 0x30]
call fcn.18000b4f0
mov rdx, rax
lea rcx, [rsp + 0x90]
call fcn.180044280
nop
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180002bf0
nop
lea rcx, [rsp + 0x90]
call fcn.1800017c0
lea rdx, [rsp + 0x118]
mov eax, 1
test rdx, rdx
je 0x180044bf0
xor r9d, r9d
lea r8, [rsp + 0x120]
mov edx, eax
lea rcx, str.D:_D_OICI_GA___BG__D_OICI_GA___AN__A_OICI_GA___AU__A_OICI_GA___BA_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
lea r8, [rsp + 0x48]
lea rdx, str.Global_
lea rcx, [rsp + 0x100]
call fcn.180004d70
mov rcx, rax
call fcn.18000b4f0
mov r8, rax
xor edx, edx
lea rcx, [rsp + 0x118]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x100]
call fcn.1800017c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [rsp + 0x90], eax
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp ebx, 0xb7
je 0x180044cb7
lea rcx, [rsp + 0x30]
call fcn.18000b4f0
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xa000
call fcn.180044960
lea r8, [rsp + 0x30]
lea rdx, str.Global_
lea rcx, [rsp + 0x38]
call fcn.180004d70
mov rcx, rax
call fcn.18000b4f0
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
mov ecx, 0xa000
call fcn.180044960
lea rcx, [rsp + 0x38]
call fcn.1800017c0
xor ebx, ebx
nop dword [rax]
mov esi, ebx
lea r8, [rsp + 0x30]
lea rdx, str.Global_
lea rcx, [rsp + 0xf8]
call fcn.180004d70
mov rcx, rax
call fcn.18000b4f0
mov r8, rax
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
lea rcx, [rsp + 0xf8]
call fcn.1800017c0
test r12, r12
je 0x180044fd0
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x180044fd0
mov rax, qword [rax]
mov qword [rsp + 0xc0], rax
mov r15d, dword [rbp + 8]
mov edi, dword [rbp + 0xc]
lea r13d, [r15 - 0x10]
lea rcx, [rsp + 0x50]
call fcn.18000c5d0
nop
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.18000c140
mov rdx, rax
mov ecx, 8
call fcn.18000c4f0
test rax, rax
je 0x180044d7f
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.18000c4c0
jmp 0x180044d82
mov rax, rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.180049c80
mov qword [rsp + 0x80], rax
mov byte [rax + 0x69], 1
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x80]
mov qword [rax], rax
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x88], rbx
mov r8d, r13d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.180047080
mov r9, qword [rsp + 0x1a0]
mov r8, qword [rsp + 0x198]
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.180046510
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800471e0
cmp dword [rsp + 0x38], r13d
ja 0x180044e3a
lea r9, [rsp + 0x38]
mov r8d, r13d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.1800471e0
mov dword [rsp + 0x40], 1
jmp 0x180044e4a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
mov eax, 1
cmove esi, eax
test esi, esi
je 0x180044e6b
mov ecx, r13d
call fcn.18004f654
mov rbx, rax
mov r9d, r13d
lea r8, [rbp + 0x10]
mov edx, r13d
mov rcx, rax
call fcn.18004f95c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180044ecf
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r8, [rsp + 0x30]
lea rdx, str.Global_
lea rcx, [rsp + 0x98]
call fcn.180004d70
mov rcx, rax
call fcn.18000b4f0
mov rdx, rax
lea ecx, [r15 + r15]
mov r9d, r13d
mov r8, rbx
call fcn.180044960
lea rcx, [rsp + 0x98]
call fcn.1800017c0
test rbx, rbx
je 0x180044edd
mov rcx, rbx
call fcn.18004f750
nop
mov rdi, qword [rsp + 0x80]
lea rcx, [rsp + 0xb0]
call fcn.1800033d0
mov qword [rsp + 0xb8], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.180003430
movaps xmm6, xmmword [rsp + 0xb0]
mov rax, qword [rsp + 0x80]
mov rdi, qword [rax]
lea rcx, [rsp + 0xa0]
call fcn.1800033d0
mov qword [rsp + 0xa8], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call fcn.180003430
movdqa xmmword [rsp + 0xd0], xmm6
movaps xmm0, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0xe0], xmm0
lea r9, [rsp + 0xd0]
lea r8, [rsp + 0xe0]
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x50]
call fcn.180049040
mov rcx, qword [rsp + 0x80]
call fcn.18004f750
xor ebx, ebx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
lea r8d, [rbx + 1]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.180025750
lea rcx, [rsp + 0x50]
call fcn.18002acc0
test esi, esi
jne 0x180044cc0
nop word [rax + rax]
mov esi, ebx
lea rcx, [rsp + 0x30]
call fcn.18000b4f0
mov r8, rax
xor edx, edx
lea ecx, [rdx + 6]
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov r12, rax
test rax, rax
je 0x18004528e
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbp, rax
test rax, rax
je 0x18004528e
mov rax, qword [rax]
mov qword [rsp + 0x98], rax
mov r15d, dword [rbp + 8]
mov edi, dword [rbp + 0xc]
lea r13d, [r15 - 0x10]
lea rcx, [rsp + 0x50]
call fcn.18000c5d0
nop
mov edx, 1
lea rcx, [rsp + 0x58]
call fcn.18000c140
mov rdx, rax
mov ecx, 8
call fcn.18000c4f0
test rax, rax
je 0x18004506b
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.18000c4c0
jmp 0x18004506e
mov rax, rbx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x50]
call fcn.180049c80
mov qword [rsp + 0x80], rax
mov byte [rax + 0x69], 1
mov rax, qword [rsp + 0x80]
mov qword [rax + 8], rax
mov rax, qword [rsp + 0x80]
mov qword [rax], rax
mov rax, qword [rsp + 0x80]
mov qword [rax + 0x10], rax
mov qword [rsp + 0x88], rbx
mov r8d, r13d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.180047080
mov r9, qword [rsp + 0x1a0]
mov r8, qword [rsp + 0x198]
mov rdx, qword [rsp + 0x190]
lea rcx, [rsp + 0x50]
call fcn.180046510
mov dword [rsp + 0x38], ebx
lea r9, [rsp + 0x38]
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800471e0
cmp dword [rsp + 0x38], r13d
ja 0x180045126
lea r9, [rsp + 0x38]
mov r8d, r13d
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x50]
call fcn.1800471e0
mov dword [rsp + 0x40], 1
jmp 0x180045136
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
mov eax, 1
cmove esi, eax
test esi, esi
je 0x180045157
mov ecx, r13d
call fcn.18004f654
mov rbx, rax
mov r9d, r13d
lea r8, [rbp + 0x10]
mov edx, r13d
mov rcx, rax
call fcn.18004f95c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180045197
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x30]
call fcn.18000b4f0
mov rdx, rax
lea ecx, [r15 + r15]
mov r9d, r13d
mov r8, rbx
call fcn.180044960
test rbx, rbx
je 0x1800451a5
mov rcx, rbx
call fcn.18004f750
nop
mov rdi, qword [rsp + 0x80]
lea rcx, [rsp + 0xa0]
call fcn.1800033d0
mov qword [rsp + 0xa8], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xa0]
call fcn.180003430
movaps xmm6, xmmword [rsp + 0xa0]
mov rax, qword [rsp + 0x80]
mov rdi, qword [rax]
lea rcx, [rsp + 0xb0]
call fcn.1800033d0
mov qword [rsp + 0xb8], rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0xb0]
call fcn.180003430
movdqa xmmword [rsp + 0xe0], xmm6
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0xd0], xmm0
lea r9, [rsp + 0xe0]
lea r8, [rsp + 0xd0]
lea rdx, [rsp + 0x108]
lea rcx, [rsp + 0x50]
call fcn.180049040
mov rcx, qword [rsp + 0x80]
call fcn.18004f750
xor ebx, ebx
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rbx
lea r8d, [rbx + 1]
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.180025750
lea rcx, [rsp + 0x50]
call fcn.18002acc0
test esi, esi
jne 0x180044fd0
mov rdi, qword [rsp + 0xf0]
test rdi, rdi
je 0x1800452bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [rsp + 0x90], 0xb7
jne 0x1800452bb
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rsp + 0x30]
call fcn.1800017c0
nop
lea rcx, [rsp + 0x48]
call fcn.1800017c0
mov eax, dword [rsp + 0x40]
jmp 0x1800452d8
xor eax, eax
mov rbx, qword [rsp + 0x1a8]
movaps xmm6, xmmword [rsp + 0x140]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret