Function at 0x180041ab0
Capabilities:
References logon banner

Disassembly:
mov dword [rsp + 0x20], r9d
push rbx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x2d8
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov r13d, r9d
mov rdi, r8
mov ebx, edx
mov r14, rcx
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x98], rcx
xor esi, esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r8
xor r9d, r9d
xor r8d, r8d
lea edx, [rsi + 1]
lea rcx, [0x1800650e0]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
nop dword [rax + rax]
lea r9, [rsp + 0x60]
mov r8, rdi
mov edx, ebx
mov rcx, r14
call fcn.180043b58
test eax, eax
jne 0x180041f07
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x78], esi
mov qword [rsp + 0x80], rsi
lea edx, [rsi + 2]
mov r15, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call fcn.18004ea9c
mov edi, eax
test eax, eax
jne 0x180041e98
mov eax, esi
mov dword [rsp + 0x54], eax
mov r8d, dword [r15 + 0x24]
test r8d, r8d
je 0x180041bd2
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov rdx, qword [r15 + 0x10]
mov rcx, qword [r15]
call qword [sym.imp.ESENT.dll_JetRetrieveColumn]
nop dword [rax + rax]
mov eax, dword [rsp + 0x54]
test r13b, 1
je 0x180041be0
test eax, eax
jle 0x180041e7a
mov eax, dword [rsp + 0x58]
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x180041e8b
mov eax, dword [rsp + 0x50]
lea ebx, [rax + 2]
cmp ebx, eax
jb 0x180041e8b
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
mov qword [rsp + 0x90], rax
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x68], rax
test r14, r14
je 0x180041e84
test rax, rax
je 0x180041e84
lea rax, [rsp + 0x88]
mov qword [rsp + 0x40], rax
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x8c]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x20], eax
mov r9, r14
xor r8d, r8d
xor edx, edx
mov rcx, r15
call fcn.18004ea9c
mov edi, eax
test eax, eax
jne 0x180041ea5
mov eax, dword [rsp + 0x58]
shr rax, 1
mov word [r14 + rax*2], si
mov eax, dword [rsp + 0x50]
shr rax, 1
mov word [rbx + rax*2], si
mov word [rsp + 0xb0], si
test r13b, 4
je 0x180041cba
and byte [rbx], 0xdf
cmp dword [r15 + 0x24], esi
jbe 0x180041ce7
mov edx, dword [rsp + 0x54]
test edx, edx
jle 0x180041ce7
mov dword [rsp + 0x5c], 0x104
lea r9, [rsp + 0x5c]
lea r8, [rsp + 0xb0]
mov rcx, qword [rsp + 0x70]
call fcn.18004e360
cmp word [rbx], si
je 0x180041dcd
test r13b, 2
je 0x180041dcd
lea rdx, str.MACHINESoftwareMicrosoftWindowsCurrentVersionPoliciesSystemLegalNoticeText
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x180041db2
mov edx, esi
lea r9d, [rax + 1]
mov r8d, dword [rsp + 0x50]
shr r8d, 1
lea r10d, [rax + 0x2c]
cmp r9d, r8d
jae 0x180041d44
mov eax, r9d
inc r9d
lea ecx, [rdx + 1]
cmp word [rbx + rax*2], r10w
cmovne ecx, edx
mov edx, ecx
jmp 0x180041d2a
test edx, edx
je 0x180041db2
lea eax, [r8 + rdx*2]
lea eax, [rax*2 + 2]
mov r13d, eax
mov edx, eax
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x180041e84
mov r8d, r13d
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov edx, dword [rsp + 0x50]
shr edx, 1
mov qword [rsp + 0x20], rdi
mov rcx, rbx
call fcn.18000f290
add eax, eax
mov dword [rsp + 0x50], eax
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rbx, rdi
mov qword [rsp + 0x68], rbx
mov r9d, 0x2c
xor r8d, r8d
mov edx, dword [rsp + 0x50]
shr edx, 1
dec edx
lea rcx, [rbx + 2]
call fcn.180012b44
nop
test rbx, rbx
je 0x180041ddb
mov eax, dword [rsp + 0x50]
add eax, 2
jmp 0x180041ddd
mov eax, esi
mov dword [rsp + 0x78], eax
mov qword [rsp + 0x80], rbx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, dword [rsp + 0x54]
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [0x1800650e0]
call qword [sym.imp.RPCRT4.dll_NdrClientCall3]
nop dword [rax + rax]
mov qword [rsp + 0xa0], rax
jmp 0x180041e4f
test rbx, rbx
je 0x180041e63
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov r13d, dword [rsp + 0x328]
mov edx, 3
jmp 0x180041b53
mov edi, 8
jmp 0x180041ea5
mov edi, 7
mov r14, rsi
mov rbx, rsi
jmp 0x180041ea5
mov r14, rsi
mov rbx, rsi
cmp edi, 2
jne 0x180041ea5
mov edi, esi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 4]
mov rcx, r15
call fcn.18004ea9c
test rbx, rbx
je 0x180041ee2
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
test r14, r14
je 0x180041ef6
mov rcx, r14
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.18004cd24
mov eax, edi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.180002a90
add rsp, 0x2d8
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
ret