Function at 0x140074e78
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
xor ebx, ebx
and dword [rbp + 0x30], ebx
call qword [sym.imp.mpclient.dll_MpClientUtilExportFunctions]
lea rcx, [rbp + 0x30]
mov rax, qword [rax + 0x98]
call fcn.140107c30
nop
test eax, eax
js 0x140074fa5
cmp dword [rbp + 0x30], ebx
je 0x140074fa5
and qword [rbp - 0x50], rbx
lea rdx, [rbp - 0x50]
lea rcx, str.Miscellaneous_Configuration
call qword [sym.imp.mpclient.dll_MpConfigOpen]
mov esi, eax
mov rcx, qword [rbp - 0x50]
test eax, eax
js 0x140074f4a
and qword [rbp - 0x40], rbx
mov dword [rbp + 0x48], 2
and dword [rbp + 0x38], ebx
and qword [rsp + 0x28], rbx
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 esi, eax
cmp eax, 0x80070002
jne 0x140074f33
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140074f96
call qword [sym.imp.mpclient.dll_MpFreeMemory]
jmp 0x140074f96
test eax, eax
jns 0x140074f8d
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140074f46
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140074f55
call qword [sym.imp.mpclient.dll_MpConfigClose]
lea rdi, [0x14016d280]
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x140074f86
test byte [rcx + 0x1c], 1
je 0x140074f86
mov edx, 0xd
mov r9d, esi
lea r8, [0x14013e660]
mov rcx, qword [rcx + 0x10]
call fcn.140044380
mov eax, esi
jmp 0x14007516a
mov rbx, qword [rbp - 0x40]
and qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140074fa5
call qword [sym.imp.mpclient.dll_MpConfigClose]
test rbx, rbx
je 0x140075050
lea rdi, [0x14016d280]
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x140074fdf
test byte [rcx + 0x1c], 4
je 0x140074fdf
mov edx, 0xe
mov r9, rbx
lea r8, [0x14013e660]
mov rcx, qword [rcx + 0x10]
call fcn.140044638
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1400f9e10
mov esi, eax
test eax, eax
jns 0x14007503b
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x14007501b
test byte [rcx + 0x1c], 1
je 0x14007501b
mov edx, 0xf
mov r9d, eax
lea r8, [0x14013e660]
mov rcx, qword [rcx + 0x10]
call fcn.140044380
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpFreeMemory]
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140074f86
call fcn.140030ba0
jmp 0x140074f86
mov rax, qword [rbp - 0x48]
mov qword [r14], rax
mov rcx, rbx
call qword [sym.imp.mpclient.dll_MpFreeMemory]
jmp 0x140075168
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 0x140075090
cmp eax, 9
je 0x140075080
mov eax, 0x80070032
jmp 0x14007516a
lea rax, str.https:__go.microsoft.com_fwlink__LinkId246445
lea rbx, str.https:__go.microsoft.com_fwlink__LinkID518968
jmp 0x14007509e
lea rbx, str.https:__go.microsoft.com_fwlink__LinkID518969
lea rax, str.https:__go.microsoft.com_fwlink__LinkId246444
test dil, dil
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
lea rdi, [0x14016d280]
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x1400750df
test byte [rcx + 0x1c], 4
je 0x1400750df
mov r9d, esi
mov edx, 0x10
lea r8, [0x14013e660]
mov rcx, qword [rcx + 0x10]
call fcn.140044380
mov r9d, esi
mov r8, rbx
lea rdx, str._lsclcid_04X
lea rcx, [rbp - 0x48]
call fcn.1400fb304
mov ebx, eax
test eax, eax
jns 0x140075137
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x140075125
test byte [rcx + 0x1c], 1
je 0x140075125
mov edx, 0x11
mov r9d, eax
lea r8, [0x14013e660]
mov rcx, qword [rcx + 0x10]
call fcn.140044380
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x140075133
call fcn.140030ba0
mov eax, ebx
jmp 0x14007516a
mov rbx, qword [rbp - 0x48]
mov rcx, qword [0x14016d280]
cmp rcx, rdi
je 0x140075165
test byte [rcx + 0x1c], 4
je 0x140075165
mov edx, 0x12
mov r9, rbx
lea r8, [0x14013e660]
mov rcx, qword [rcx + 0x10]
call fcn.140044638
mov qword [r14], rbx
xor eax, eax
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret