Function at 0x100007da0
Capabilities:
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, r9d
mov rdi, r8
mov rbp, rcx
call sub.MFC42u.dll_AfxDeleteObject
lea rcx, [rbp + 8]
mov rdx, rdi
call sub.MFC42u.dll_AfxDeleteObject
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
lea r9, [rbp + 0x20]
lea r8, [rbp + 0x18]
mov dword [rbp + 0x10], esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
jmp 0x100007da0
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8d8
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x10000e110]
xor rax, rsp
mov qword [rsp + 0x8c0], rax
mov r13, r9
mov rbp, r8
mov rdi, rdx
mov qword [rsp + 0x98], rdx
mov qword [rsp + 0xa0], rcx
xor eax, eax
cmp rdx, rax
je 0x1000080ce
cmp word [rdx], ax
je 0x1000080ce
cmp r8, rax
je 0x1000080ce
cmp r9, rax
je 0x1000080ce
mov qword [r8], rax
mov byte [rsp + 0xb0], al
mov byte [rsp + 0xb1], al
mov byte [rsp + 0xb2], al
mov byte [rsp + 0xb3], al
mov byte [rsp + 0xb4], al
mov byte [rsp + 0xb5], 5
mov byte [rsp + 0xb8], al
mov byte [rsp + 0xb9], al
mov byte [rsp + 0xba], al
mov byte [rsp + 0xbb], al
mov byte [rsp + 0xbc], al
mov byte [rsp + 0xbd], 1
mov r14, rax
mov ebx, eax
mov r15b, al
lea r12d, [rax + 0x20]
mov r8, r12
xor edx, edx
lea rcx, [rsp + 0x78]
call sub.msvcrt.dll_memset
mov dword [r13], 1
mov rdx, rdi
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDaoException::CDaoException
nop
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CWnd::OnDragList
lea rdi, [0x1000026f0]
mov rax, qword [rsp + 0x68]
mov rsi, rax
lea ecx, [r14 + 0xf]
repe cmpsw word [rsi], word [rdi]
jne 0x100007ed2
lea r14, [rsp + 0xb0]
mov r15b, 2
mov dword [rsp + 0x7c], 0x220
jmp 0x100007f4e
lea rdi, [0x1000026d8]
mov rsi, rax
mov ecx, 9
repe cmpsw word [rsi], word [rdi]
jne 0x100007ef6
lea r14, [rsp + 0xb8]
mov r15b, 1
xor r12d, r12d
jmp 0x100007f4e
lea rdi, [0x100002b48]
mov rsi, rax
mov ecx, 7
repe cmpsw word [rsi], word [rdi]
jne 0x100007f1d
lea r14, [rsp + 0xb0]
mov r15b, 1
mov r12d, 0x12
jmp 0x100007f4e
lea rdi, [0x100002b58]
mov rsi, rax
mov ecx, 0xc
repe cmpsw word [rsi], word [rdi]
jne 0x100007f44
lea r14, [rsp + 0xb0]
mov r15b, 1
mov r12d, 4
jmp 0x100007f4e
and dword [r13], 0
mov r12d, dword [rsp + 0x78]
cmp dword [r13], 0
je 0x100007fc5
mov qword [rsp + 0x50], rbp
mov eax, dword [rsp + 0x94]
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x8c]
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x84]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x7c]
mov r8d, r12d
mov dl, r15b
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x1000080b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x10000808b
and dword [rsp + 0x64], 0
mov r12d, 0x400
mov dword [rsp + 0x60], r12d
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
mov r8, qword [rbp]
mov rdi, qword [rsp + 0x98]
mov rdx, rdi
mov rsi, qword [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0x7a
jne 0x10000808b
xor ebx, ebx
mov edx, dword [rsp + 0x64]
lea ecx, [rax - 0x3a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbp], rax
test rax, rax
jne 0x100008045
lea ebx, [rax + 8]
jmp 0x10000808f
mov dword [rsp + 0x60], r12d
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0xc0]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x64]
mov r8, rax
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1000080b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1000080b2
mov rcx, qword [rbp]
test rcx, rcx
je 0x1000080b2
cmp dword [r13], 0
je 0x1000080a7
call qword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x1000080ad
call qword [sym.imp.KERNEL32.dll_LocalFree]
and qword [rbp], 0
movzx edi, bx
or edi, 0x80070000
test ebx, ebx
cmovle edi, ebx
lea rcx, [rsp + 0x68]
call sub.MFC42u.dll_CDocObjectServer::XOleDocument::AddRef
mov eax, edi
jmp 0x1000080d3
mov eax, 0x80070057
mov rcx, qword [rsp + 0x8c0]
xor rcx, rsp
call fcn.1000098a0
add rsp, 0x8d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret