Function at 0x18004aaec
Capabilities:
References logon banner

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xc8
mov rax, qword [0x18008ab58]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, qword [rbp + 0x7f]
xor r14d, r14d
mov dword [rbp - 0x51], edx
mov r15, r9
mov qword [rbp - 0x31], rdi
mov rsi, r8
mov r12d, edx
test rcx, rcx
je 0x18004b193
test r8, r8
je 0x18004b193
test r9, r9
je 0x18004b193
cmp edx, 0x12d
mov qword [rbp - 0x41], r14
mov eax, 0x12e
lea r9, [rbp - 0x41]
cmove edx, eax
lea r8, [0x180073998]
mov r13d, r14d
call fcn.180043b58
mov ebx, eax
test eax, eax
je 0x18004ab90
lea r9, [0x180073998]
mov r8d, 0x44d1
mov rdx, rdi
lea ecx, [r14 + 0xd]
call fcn.18000dc90
mov eax, ebx
jmp 0x18004b198
mov qword [rsi], r14
mov r9, r15
mov r14, qword [rbp - 0x41]
xor r8d, r8d
mov rcx, r14
xor edx, edx
call fcn.18004e540
xor ecx, ecx
mov ebx, eax
test eax, eax
jne 0x18004b065
cmp dword [r15], ecx
jbe 0x18004b08a
mov eax, dword [r15]
lea ecx, [rbx + 0x40]
lea rdx, [rax + rax*2]
shl rdx, 3
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
xor ecx, ecx
mov qword [rsi], rax
test rax, rax
je 0x18004b05a
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea edx, [rbx + 2]
mov dword [rsp + 0x38], ecx
lea rax, [rbp - 0x5d]
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.18004ea9c
xor ecx, ecx
mov ebx, eax
mov dword [rbp - 0x59], ecx
mov eax, ecx
mov dword [rbp - 0x45], ecx
mov edi, ecx
mov dword [rbp - 0x55], ecx
cmp r12d, 0x12d
jne 0x18004ac65
mov rdx, qword [r14 + 0x10]
lea r9, [rbp - 0x21]
mov dword [rsp + 0x28], ecx
lea r8, [0x18007bfcc]
mov rcx, qword [r14]
mov dword [rsp + 0x20], 0x1c
call qword [sym.imp.ESENT.dll_JetGetTableColumnInfoA]
nop dword [rax + rax]
xor ecx, ecx
test eax, eax
mov eax, ecx
cmove edi, dword [rbp - 0x1d]
mov dword [rbp - 0x45], edi
mov r13d, ecx
test ebx, ebx
je 0x18004ac75
cmp ebx, 5
jne 0x18004b065
cmp eax, dword [r15]
jae 0x18004b03e
mov dword [rbp - 0x55], 1
cmp r12d, 0x12d
jne 0x18004ad0d
mov dword [rbp - 0x55], ecx
test edi, edi
je 0x18004acd0
mov rdx, qword [r14 + 0x10]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x38], rcx
lea r9, [rbp - 0x55]
mov dword [rsp + 0x30], ecx
mov r8d, edi
mov rcx, qword [r14]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 4
call qword [sym.imp.ESENT.dll_JetRetrieveColumn]
nop dword [rax + rax]
xor ecx, ecx
cmp dword [rbp - 0x55], ecx
jg 0x18004ad0d
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov dword [rsp + 0x38], ecx
lea rax, [rbp - 0x5d]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
lea edx, [r9 + 3]
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.18004ea9c
mov ebx, eax
xor ecx, ecx
mov eax, dword [rbp - 0x59]
jmp 0x18004ac68
mov eax, dword [rbp - 0x5d]
inc r13d
lea ecx, [rax + 2]
cmp ecx, eax
jb 0x18004b035
mov eax, dword [rbp - 0x61]
lea ebx, [rax + 2]
cmp ebx, eax
jb 0x18004b035
mov edx, ecx
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
xor ecx, ecx
mov r12, rax
test rax, rax
je 0x18004b024
mov edx, ebx
mov ecx, 0x40
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
xor ecx, ecx
mov rdi, rax
test rax, rax
je 0x18004afc9
mov ecx, dword [rbp - 0x61]
lea rax, [rbp - 0x61]
mov qword [rsp + 0x40], rax
mov r9, r12
mov dword [rsp + 0x38], ecx
lea rax, [rbp - 0x5d]
mov ecx, dword [rbp - 0x5d]
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.18004ea9c
xor ecx, ecx
mov ebx, eax
test eax, eax
je 0x18004add9
cmp eax, 5
je 0x18004add9
cmp eax, 2
je 0x18004afb1
mov rdx, qword [rbp - 0x31]
lea r9, [0x180073998]
mov r8d, 0x44d6
mov ecx, 0x1e
call fcn.18000dc90
jmp 0x18004afa8
mov eax, dword [rbp - 0x61]
mov ebx, ecx
test eax, eax
je 0x18004ade9
shr rax, 1
mov word [rdi + rax*2], cx
mov eax, dword [rbp - 0x5d]
shr rax, 1
mov word [r12 + rax*2], cx
cmp dword [rbp - 0x61], ecx
jbe 0x18004afac
cmp word [rdi], cx
je 0x18004afac
movsx eax, byte [rdi]
sub eax, 0x30
cmp byte [rdi + 1], 0x30
mov dword [rbp - 0x4d], eax
jl 0x18004ae24
movsx eax, byte [rdi + 1]
sub eax, 0x30
mov dword [rbp - 0x49], eax
mov eax, dword [rbp - 0x4d]
jmp 0x18004ae27
mov dword [rbp - 0x49], ecx
cmp dword [rbp - 0x61], 4
mov r14, rcx
jbe 0x18004af6d
cmp eax, 7
jne 0x18004aefb
lea rdx, str.MACHINESoftwareMicrosoftWindowsCurrentVersionPoliciesSystemLegalNoticeText
mov rcx, r12
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
xor r10d, r10d
test eax, eax
jne 0x18004aefb
mov ecx, dword [rbp - 0x61]
mov edx, r10d
shr ecx, 1
cmp ecx, 2
jbe 0x18004aefb
lea r8, [rdi + 4]
lea r9d, [rcx - 2]
lea r11d, [r10 + 0x2c]
cmp word [r8], r11w
lea eax, [rdx + 1]
lea r8, [r8 + 2]
cmovne eax, edx
mov edx, eax
sub r9, 1
jne 0x18004ae7b
test eax, eax
je 0x18004aefb
lea eax, [rcx + rax*2]
lea eax, [rax*2 + 2]
mov edx, eax
mov qword [rbp - 0x39], rax
lea ecx, [r9 + 0x40]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x18004aef6
mov r8, qword [rbp - 0x39]
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov edx, dword [rbp - 0x61]
mov rcx, rdi
shr edx, 1
mov qword [rsp + 0x20], r14
call fcn.18000f290
add eax, eax
mov rcx, rdi
mov dword [rbp - 0x61], eax
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
mov rdi, r14
jmp 0x18004aefb
mov ebx, 8
mov edx, dword [rbp - 0x61]
lea rcx, [rdi + 4]
shr edx, 1
mov r9d, 0x2c
sub edx, 2
xor r8d, r8d
call fcn.180012b44
mov r9d, dword [rbp - 0x61]
xor ecx, ecx
shr r9d, 1
dec r9d
mov eax, r9d
mov qword [rbp - 0x39], rax
lea rdx, [r9 + r9]
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x18004af68
mov rdx, qword [rbp - 0x39]
lea r8, [rdi + 4]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
mov ecx, dword [rbp - 0x61]
shr ecx, 1
sub ecx, 2
xor eax, eax
mov word [r14 + rcx*2], ax
jmp 0x18004af6d
mov ebx, 8
mov rax, qword [rsi]
mov r8d, dword [rbp - 0x59]
mov edx, dword [rbp - 0x4d]
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8], r12
xor eax, eax
mov r12d, eax
inc r8d
mov rax, qword [rsi]
mov dword [rbp - 0x59], r8d
mov dword [rax + rcx*8 + 0x10], edx
mov rax, qword [rsi]
mov edx, dword [rbp - 0x49]
mov qword [rax + rcx*8 + 8], r14
mov rax, qword [rsi]
mov r14, qword [rbp - 0x41]
mov dword [rax + rcx*8 + 0x14], edx
xor ecx, ecx
jmp 0x18004afb1
mov ebx, 3
test rdi, rdi
je 0x18004afce
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor ecx, ecx
jmp 0x18004afce
mov ebx, 8
test r12, r12
je 0x18004afe4
mov rcx, r12
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor ecx, ecx
test ebx, ebx
jne 0x18004b061
lea rax, [rbp - 0x61]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea edx, [rbx + 3]
mov dword [rsp + 0x38], ecx
lea rax, [rbp - 0x5d]
mov qword [rsp + 0x30], rcx
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, r14
call fcn.18004ea9c
mov edi, dword [rbp - 0x45]
mov r12d, dword [rbp - 0x51]
jmp 0x18004ad01
mov r12d, dword [rbp - 0x51]
mov ebx, 8
mov eax, dword [rbp - 0x59]
jmp 0x18004ac68
mov ebx, 7
xor ecx, ecx
jmp 0x18004b065
mov r9d, dword [r15]
mov ebx, 3
mov rdx, qword [rbp - 0x31]
mov r8d, 0x44ce
lea ecx, [rbx + 0xa]
call fcn.18000dc90
jmp 0x18004b075
mov ebx, 8
jmp 0x18004b065
mov r12d, dword [rbp - 0x51]
cmp ebx, 2
je 0x18004b06f
cmp ebx, 5
jne 0x18004b071
mov ebx, ecx
test ebx, ebx
je 0x18004b08a
mov edx, dword [r15]
mov rcx, rsi
call fcn.180011cf8
xor eax, eax
mov qword [rsi], rax
jmp 0x18004b180
cmp r12d, 0x12d
jne 0x18004b180
cmp dword [r15], r13d
jbe 0x18004b180
test r13d, r13d
je 0x18004b16d
mov rdi, qword [rsi]
mov ecx, 0x40
mov eax, r13d
lea rdx, [rax + rax*2]
shl rdx, 3
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalAlloc]
nop dword [rax + rax]
xor edx, edx
mov qword [rsi], rax
test rax, rax
je 0x18004b160
mov r14d, edx
mov r12d, edx
cmp dword [r15], edx
jbe 0x18004b14a
mov eax, r14d
lea r8, [rax + rax*2]
cmp qword [rdi + r8*8 + 8], rdx
je 0x18004b12b
mov rcx, qword [rsi]
mov eax, r12d
inc r12d
lea rdx, [rax + rax*2]
mov rax, qword [rdi + r8*8]
mov qword [rcx + rdx*8], rax
mov rcx, qword [rsi]
mov rax, qword [rdi + r8*8 + 8]
mov qword [rcx + rdx*8 + 8], rax
mov rcx, qword [rsi]
mov eax, dword [rdi + r8*8 + 0x10]
mov dword [rcx + rdx*8 + 0x10], eax
mov rcx, qword [rsi]
mov eax, dword [rdi + r8*8 + 0x14]
mov dword [rcx + rdx*8 + 0x14], eax
jmp 0x18004b140
mov rcx, qword [rdi + r8*8]
test rcx, rcx
je 0x18004b142
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
xor edx, edx
inc r14d
cmp r14d, dword [r15]
jb 0x18004b0e1
test rdi, rdi
je 0x18004b168
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop dword [rax + rax]
jmp 0x18004b168
mov ebx, 8
mov r13d, edx
mov dword [r15], r13d
jmp 0x18004b180
mov edx, dword [r15]
mov rcx, rsi
call fcn.180011cf8
xor eax, eax
mov qword [rsi], rax
mov dword [r15], eax
mov edx, 1
lea rcx, [rbp - 0x41]
call fcn.18004cd24
jmp 0x18004ab89
mov eax, 1
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.180002a90
add rsp, 0xc8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret