Function at 0x140022280
Capabilities:
Get system information on windows
Identify system language via api

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov dil, r8b
mov r14, rdx
and qword [rdx], 0
and qword [rbp - 0x48], 0
and dword [rbp + 0x30], 0
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
movabs r10, 0x839537915cdcb870
lea rcx, [rbp + 0x30]
mov rax, qword [rax + 0x98]
call qword [0x14004a4e8]
nop
test eax, eax
js 0x140022357
cmp dword [rbp + 0x30], 0
je 0x140022357
and qword [rbp - 0x50], 0
lea rdx, [rbp - 0x50]
lea rcx, str.Miscellaneous_Configuration
call qword [sym.imp.mpclient.dll_MpConfigOpen]
mov ebx, eax
mov rcx, qword [rbp - 0x50]
test eax, eax
js 0x1400223a6
and qword [rbp - 0x40], 0
mov dword [rbp + 0x48], 2
and dword [rbp + 0x38], 0
and qword [rsp + 0x28], 0
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x38]
lea r8, [rbp + 0x48]
lea rdx, str.OfflineScanner_Url
call qword [sym.imp.mpclient.dll_MpConfigGetValueAlloc]
mov ebx, eax
cmp eax, 0x80070002
jne 0x14002238f
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140022348
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140022357
call qword [sym.imp.mpclient.dll_MpConfigClose]
xorps xmm0, xmm0
movups xmmword [rbp - 0x38], xmm0
movups xmmword [rbp - 0x28], xmm0
movups xmmword [rbp - 0x18], xmm0
lea rcx, [rbp - 0x38]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [rbp - 0x38]
test eax, eax
je 0x1400224ba
cmp eax, 9
je 0x1400224aa
mov eax, 0x80070032
jmp 0x140022599
test eax, eax
jns 0x1400223e9
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400223a2
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1400223b1
call qword [sym.imp.mpclient.dll_MpConfigClose]
lea rdi, str.___a_
mov rcx, qword [str.___a_]
cmp rcx, rdi
je 0x1400223e2
test byte [rcx + 0x1c], 1
je 0x1400223e2
mov edx, 0xd
mov r9d, ebx
lea r8, [0x140062570]
mov rcx, qword [rcx + 0x10]
call fcn.140002534
mov eax, ebx
jmp 0x140022599
mov rbx, qword [rbp - 0x40]
and qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140022401
call qword [sym.imp.mpclient.dll_MpConfigClose]
test rbx, rbx
je 0x140022357
lea rdi, str.___a_
mov rcx, qword [str.___a_]
cmp rcx, rdi
je 0x14002243b
test byte [rcx + 0x1c], 4
je 0x14002243b
mov edx, 0xe
mov r9, rbx
lea r8, [0x140062570]
mov rcx, qword [rcx + 0x10]
call fcn.1400022ac
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.14003d94c
mov esi, eax
test eax, eax
jns 0x140022495
mov rcx, qword [str.___a_]
cmp rcx, rdi
je 0x140022477
test byte [rcx + 0x1c], 1
je 0x140022477
mov edx, 0xf
mov r9d, eax
lea r8, [0x140062570]
mov rcx, qword [rcx + 0x10]
call fcn.140002534
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x14002248e
call fcn.140040784
mov eax, esi
jmp 0x140022599
mov rax, qword [rbp - 0x48]
mov qword [r14], rax
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpFreeMemory]
jmp 0x140022597
lea rax, str.https:__go.microsoft.com_fwlink__LinkID518968
lea rbx, str.https:__go.microsoft.com_fwlink__LinkId246445
jmp 0x1400224c8
lea rax, str.https:__go.microsoft.com_fwlink__LinkID518969
lea rbx, str.https:__go.microsoft.com_fwlink__LinkId246444
test dil, dil
cmovne rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
lea rdi, str.___a_
mov rcx, qword [str.___a_]
cmp rcx, rdi
je 0x140022509
test byte [rcx + 0x1c], 4
je 0x140022509
mov r9d, esi
mov edx, 0x10
lea r8, [0x140062570]
mov rcx, qword [rcx + 0x10]
call fcn.140002170
mov r9d, esi
mov r8, rbx
lea rdx, str._lsclcid_04X
lea rcx, [rbp - 0x48]
call fcn.14003b888
mov ebx, eax
test eax, eax
jns 0x140022566
mov rcx, qword [str.___a_]
cmp rcx, rdi
je 0x14002254f
test byte [rcx + 0x1c], 1
je 0x14002254f
mov edx, 0x11
mov r9d, eax
lea r8, [0x140062570]
mov rcx, qword [rcx + 0x10]
call fcn.140002534
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400223e2
call fcn.140040784
jmp 0x1400223e2
mov rbx, qword [rbp - 0x48]
mov rcx, qword [str.___a_]
cmp rcx, rdi
je 0x140022594
test byte [rcx + 0x1c], 4
je 0x140022594
mov edx, 0x12
mov r9, rbx
lea r8, [0x140062570]
mov rcx, qword [rcx + 0x10]
call fcn.1400022ac
mov qword [r14], rbx
xor eax, eax
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret