Function at 0x140019890
Capabilities:
Impersonate user

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov rdi, r9
mov rbx, r8
mov r14, rdx
mov r15, rcx
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rbp - 8]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_296]
nop
mov rdx, rbx
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
nop
mov rdx, rdi
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__7]
nop
xor esi, esi
lea r12d, [rsi + 2]
mov rax, qword [0x1401776e0]
cmp dword [rax + 0x358], esi
je 0x140019a3d
lea rdx, [0x1400fd31c]
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_CRecordset::ExecuteUpdateSQL]
mov ebx, eax
cmp eax, 0xffffffff
jle 0x14001998a
mov r8d, eax
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_CStringList::InsertBefore]
nop
mov rdx, rax
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
lea r8d, [rbx + 1]
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_CMFCToolBar::LoadState]
nop
mov rdx, rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_1501]
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rax, qword [rbp - 0x40]
cmp dword [rax - 0x10], 0
jne 0x1400199b5
lea r9, str.WireMonitor:Invalid_Logon_Syntax
mov r8d, 0xfffffffe
mov edx, r12d
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
jmp 0x140019b5f
lea rdx, [0x1400fd378]
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_2903]
test eax, eax
je 0x140019a3d
mov rax, qword [rbp - 0x38]
cmp dword [rax - 0x10], 0
jne 0x1400199d9
mov rdi, rsi
jmp 0x1400199eb
mov edx, 1
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rdi, rax
mov edx, 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rbx, rax
mov edx, 1
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_Ordinal_4946]
mov rcx, rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9d, r12d
mov r8, rbx
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
je 0x140019ae7
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [r14 + 0x20]
mov rcx, r15
call fcn.1400195b0
mov dword [r14 + 0x18], eax
mov r9d, eax
mov r8, qword [str.:scmdaccess]
lea rdx, str._s:_d
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
lea rdx, [rbp - 0x28]
mov rcx, r14
call fcn.140099dd0
movsxd rax, dword [r14 + 0x18]
mov edi, esi
test eax, eax
cmove edi, r12d
mov rbx, rax
lea r15, str.No_Access
mov rcx, r14
call fcn.140099900
mov rcx, rax
mov rax, qword [r15 + rbx*8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, str.WireMonitor:Login__s__Access:__s_
mov r8d, 0xfffffffe
mov edx, edi
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
cmp dword [r14 + 0x18], 0
jne 0x140019b5a
mov rcx, r14
call fcn.140099900
mov r8, rax
lea rdx, str.Login_Service:_Access_Denied___s
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
jmp 0x140019b5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.14009d5a0
mov rbx, rax
mov rcx, r14
call fcn.140099900
mov qword [rsp + 0x28], rax
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
lea r9, str.WireMonitor:Invalid_Logon_Attempt___s____s
mov r8d, 0xfffffffe
mov edx, r12d
mov rcx, qword [0x1401776d0]
call fcn.1400a5ff0
nop
lea rcx, [rbp - 0x18]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov rcx, r14
call fcn.140099900
mov r9, rax
mov r8d, edi
lea rdx, str.Login_Service:_Access_Denied___login_err_d____s
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_CMFCZoomKernel::Filter]
jmp 0x140019b5f
mov esi, 1
lea rcx, [rbp - 0x30]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x38]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 8]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x28]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
nop
lea rcx, [rbp - 0x20]
call qword [sym.imp.mfc140u.dll_CMFCRibbonInfo::XElementButtonGallery::XGalleryGroup::XGalleryGroup]
mov eax, esi
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret