Function at 0x140002390
Capabilities:
Get session information

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7c8]
sub rsp, 0x8a0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1400f7080]
xor rax, rsp
mov qword [rbp + 0x790], rax
mov r13, rcx
mov ecx, 8
call fcn.1400a4d9c
mov qword [rsp + 0x40], rax
lea rcx, vtable.UAccessDB.0
mov qword [rax], rcx
mov qword [r13 + 0xc0], rax
xor r12d, r12d
cmp byte [r13 + 0xa9], r12b
je 0x1400026e7
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov edx, 0xffffffff
xor ecx, ecx
lea r8d, [rcx + 8]
call qword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x140002432
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov esi, 0x3c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r12w
lea r8d, [rsi - 0x19]
lea rdx, str.GlobalArthur_Database_Open_Sync_SE
lea rcx, [rsp + 0x68]
call fcn.140002160
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140008e80
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 8
jb 0x1400024b0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024ab
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002736
call fcn.1400a508c
mov qword [rsp + 0x78], r12
mov qword [rbp - 0x80], 7
mov word [rsp + 0x68], r12w
mov r14, qword [rsp + 0x48]
movzx r15d, byte [rsp + 0x54]
test r15b, r15b
je 0x140002502
test r14, r14
je 0x140002502
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x50], eax
je 0x140002502
mov edx, 0xffffffff
mov rcx, r14
call fcn.1400090a0
cmp eax, 0x100
je 0x140002502
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x50], eax
call fcn.140006140
mov rbx, rax
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r12
xor r8d, r8d
xor edx, edx
call fcn.140002e80
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.140003700
test al, al
je 0x140002573
lea r8, [rsp + 0x30]
mov rdx, rbx
call fcn.140002740
movsxd rsi, eax
test eax, eax
js 0x14000256e
call fcn.140006140
cmp rbx, rax
jge 0x140002573
mov rcx, rsi
sub rcx, rax
add rcx, rbx
cmp rcx, 1
jle 0x140002567
sub ebx, eax
add esi, ebx
jmp 0x140002573
mov esi, 1
jmp 0x140002573
mov esi, 0xffffffff
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
mov qword [rsp + 0x38], r12
cmp rcx, rdi
je 0x1400025a5
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0xb8
call fcn.1400a508c
mov rcx, rbx
cmp rbx, rdi
jne 0x140002590
mov edx, 0xb8
mov rcx, rdi
call fcn.1400a508c
nop
test r15b, r15b
je 0x1400025cf
test r14, r14
je 0x1400025cf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0xffffffff
test esi, esi
js 0x1400025f8
movsxd rax, esi
imul rcx, rax, 0x3e8
cmp rcx, 0x7fffffff
jge 0x1400025f3
imul edx, esi, 0x3e8
jmp 0x1400025f8
mov edx, 0x7fffffff
xor r8d, r8d
mov rcx, qword [r13 + 0xb0]
call fcn.140006a20
mov r14, qword [r13 + 0xb0]
lea rbx, [r14 + 0x18]
mov rdi, r12
xor sil, sil
test rbx, rbx
je 0x14000264d
cmp byte [rbx + 0xc], dil
je 0x14000264d
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x14000264a
mov edx, 0xffffffff
mov rcx, rbx
call fcn.140008fe0
and eax, 0xc0000000
cmp eax, 0xc0000000
je 0x14000264d
mov sil, 1
mov rdi, rbx
mov r9, qword [r14]
mov rbx, qword [r14 + 8]
sub rbx, r9
sar rbx, 3
test ebx, ebx
je 0x14000268f
lea rax, [rbp - 0x70]
lea rcx, [rbp - 0x70]
sub r9, rcx
mov r8d, ebx
nop dword [rax]
mov rcx, qword [r9 + rax]
cmp byte [rcx + 8], 0
je 0x14000267f
mov rdx, qword [rcx]
jmp 0x140002682
mov rdx, r12
mov qword [rax], rdx
add rax, 8
sub r8, 1
jne 0x140002670
test sil, sil
je 0x1400026c3
test rdi, rdi
je 0x1400026c3
cmp byte [rdi + 0xc], 0
je 0x1400026c3
cmp qword [rdi], 0
je 0x1400026c3
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [rdi + 8]
jne 0x1400026c3
xor eax, eax
mov dword [rdi + 8], eax
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400026c3
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
je 0x1400026da
mov r9d, dword [r14 + 0x28]
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp byte [r13 + 0xa9], 0
jmp 0x1400023fd
mov rcx, qword [r13 + 0xc0]
test rcx, rcx
je 0x140002704
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [r13 + 0xc0], r12
xor eax, eax
mov rcx, qword [rbp + 0x790]
xor rcx, rsp
call fcn.1400a4a60
lea r11, [rsp + 0x8a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400a8f10
nop
int3