Function at 0x7ff7c15a29f8
Capabilities:
Check os version
Identify system language via api

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x200
mov qword [rax - 0x170], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rax, qword [0x7ff7c1620328]
xor rax, rsp
mov qword [rsp + 0x1f8], rax
mov qword [rsp + 0x78], r8
mov edx, 0x3a34
call fcn.7ff7c15bfc08
xor edi, edi
test eax, eax
js 0x7ff7c15a2a4b
call fcn.7ff7c15a3a94
jmp 0x7ff7c15a31a7
call fcn.7ff7c15a275c
cmp qword [0x7ff7c161b250], rdi
jne 0x7ff7c15a2bd8
mov esi, edi
cmp byte [0x7ff7c1621059], dil
jne 0x7ff7c15a2b55
mov dword [rsp + 0xd0], 0x114
lea rcx, [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x7ff7c15a2ab7
mov eax, dword [rsp + 0xd4]
cmp eax, 6
setb cl
mov byte [0x7ff7c1621058], cl
ja 0x7ff7c15a2aaa
jne 0x7ff7c15a2aaf
cmp dword [rsp + 0xd8], 1
jbe 0x7ff7c15a2aaf
mov esi, 1
test cl, cl
jne 0x7ff7c15a2b4e
lea rcx, str.advapi32.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
jne 0x7ff7c15a2ae5
test esi, esi
je 0x7ff7c15a2b47
lea rcx, str.api_ms_win_eventing_provider_l1_1_0.dll
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x7ff7c15a2b47
lea rdx, str.EventWrite
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x7ff7c1621050], rax
test rax, rax
je 0x7ff7c15a2b47
lea rdx, str.EventRegister
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x7ff7c161b1f8], rax
test rax, rax
je 0x7ff7c15a2b39
lea rdx, str.EventUnregister
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x7ff7c1621048], rax
test rax, rax
jne 0x7ff7c15a2b4e
lea rax, [0x7ff7c15a1c20]
mov qword [0x7ff7c161b1f8], rax
mov byte [0x7ff7c1621058], 1
mov byte [0x7ff7c1621059], 1
lea rdx, [0x7ff7c161b250]
cmp byte [0x7ff7c1621058], dil
jne 0x7ff7c15a2b88
mov r9, rdx
mov r8, rdx
lea rdx, [0x7ff7c15a1af0]
lea rcx, [0x7ff7c15f84b8]
mov rax, qword [0x7ff7c161b1f8]
call qword [0x7ff7c15f6588]
jmp 0x7ff7c15a2bd8
mov qword [0x7ff7c161b250], rdx
lea rax, [0x7ff7c15f84b8]
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdi
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rdi
lea rcx, [rsp + 0x98]
mov qword [rsp + 0x20], rcx
mov r9d, 1
mov r8, rax
lea rcx, [0x7ff7c15a1980]
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
movzx r9d, word [0x7ff7c15f8450]
lea r8, [0x7ff7c15f8450]
mov edx, 2
mov rcx, qword [0x7ff7c161b250]
call qword [sym.imp.ADVAPI32.dll_EventSetInformation]
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rdi
mov rbx, rdi
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0x68], rdi
lea rcx, [rsp + 0x70]
call fcn.7ff7c15bfd00
mov esi, eax
test eax, eax
jns 0x7ff7c15a2c53
lea r14, [0x7ff7c161b240]
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x13
jmp 0x7ff7c15a2f7e
call fcn.7ff7c15a37f8
mov esi, eax
test eax, eax
jns 0x7ff7c15a2c89
lea r14, [0x7ff7c161b240]
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x14
jmp 0x7ff7c15a2f7e
mov byte [rsp + 0x40], dil
lea rdx, str.GetLanguageFromRegistry
lea rcx, [rsp + 0x40]
call fcn.7ff7c15b71c4
mov esi, eax
test eax, eax
jns 0x7ff7c15a2cd0
lea r14, [0x7ff7c161b240]
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x15
jmp 0x7ff7c15a2f7e
mov word [rsp + 0x44], di
cmp byte [rsp + 0x40], dil
je 0x7ff7c15a2d31
lea rcx, [rsp + 0x44]
call fcn.7ff7c15b23cc
test eax, eax
jns 0x7ff7c15a2d29
lea r14, [0x7ff7c161b240]
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2d1b
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2d1b
mov edx, 0x16
mov r9d, eax
lea r8, [0x7ff7c15f8488]
mov rcx, qword [rcx + 0x10]
call fcn.7ff7c15a1eb4
mov r15d, 0x409
mov word [rsp + 0x44], r15w
jmp 0x7ff7c15a2d47
movzx r15d, word [rsp + 0x44]
jmp 0x7ff7c15a2d40
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r15d, ax
mov word [rsp + 0x44], ax
lea r14, [0x7ff7c161b240]
movzx ecx, r15w
call fcn.7ff7c15b278c
mov esi, eax
test eax, eax
jns 0x7ff7c15a2d7a
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x17
jmp 0x7ff7c15a2f7e
call qword [sym.imp.mpclient.dll_MpConfigInitialize]
mov esi, eax
test eax, eax
js 0x7ff7c15a2d91
mov qword [rsp + 0x68], 0x12345678
mov esi, edi
test esi, esi
jns 0x7ff7c15a2dbc
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x18
mov r9d, esi
jmp 0x7ff7c15a2f81
call fcn.7ff7c15c1014
test eax, eax
jns 0x7ff7c15a2def
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2def
test byte [rcx + 0x1c], 2
je 0x7ff7c15a2def
mov edx, 0x19
mov r9d, eax
lea r8, [0x7ff7c15f8488]
mov rcx, qword [rcx + 0x10]
call fcn.7ff7c15a1eb4
mov dword [rsp + 0x58], edi
xor r9d, r9d
lea r8, [rsp + 0x58]
lea rdx, str.UILockdown
lea rcx, str.UX_Configuration
call fcn.7ff7c15cb13c
mov esi, eax
mov eax, edi
test esi, esi
js 0x7ff7c15a2e21
cmp dword [rsp + 0x58], edi
setne al
test esi, esi
jns 0x7ff7c15a2e45
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x1a
jmp 0x7ff7c15a2db4
test eax, eax
je 0x7ff7c15a2e7d
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a3051
test byte [rcx + 0x1c], 4
je 0x7ff7c15a3051
mov edx, 0x1b
lea r8, [0x7ff7c15f8488]
mov rcx, qword [rcx + 0x10]
call fcn.7ff7c15a1e00
jmp 0x7ff7c15a3051
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x7ff7c15a2e8d
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov qword [rsp + 0x60], rdi
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x90], rdi
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
test eax, eax
je 0x7ff7c15a2ede
cmp eax, 3
je 0x7ff7c15a2ed4
mov r9d, 0x80004005
jmp 0x7ff7c15a2ee1
mov esi, 0x8007000e
mov r9d, esi
jmp 0x7ff7c15a2ee9
mov r9d, edi
mov esi, r9d
test r9d, r9d
jns 0x7ff7c15a2f0a
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x1c
jmp 0x7ff7c15a2f81
mov ecx, 0x560
call fcn.7ff7c15a164c
movzx edx, r15w
mov rcx, rax
call fcn.7ff7c15a66c8
mov qword [rsp + 0xb8], rax
test rax, rax
cmovne rbx, rax
mov qword [rsp + 0x50], rbx
jmp 0x7ff7c15a2f48
test esi, esi
js 0x7ff7c15a2f91
mov qword [0x7ff7c1620a68], rbx
mov rdx, qword [rsp + 0x78]
call fcn.7ff7c15a2230
mov esi, eax
test eax, eax
jns 0x7ff7c15a3034
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a2f91
test byte [rcx + 0x1c], 1
je 0x7ff7c15a2f91
mov edx, 0x1d
mov r9d, eax
lea r8, [0x7ff7c15f8488]
mov rcx, qword [rcx + 0x10]
call fcn.7ff7c15a1eb4
mov rax, qword [0x7ff7c161b338]
lea rcx, [0x7ff7c161b338]
mov rax, qword [rax + 0x18]
call qword [0x7ff7c15f6588]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov r8d, esi
lea rdx, str.An_error_has_occurred_in_the_program_during_initialization._If_this_problem_continues__please_contact_your_system_administrator._r_n_r_nError_code:_0x_8x
lea rcx, [rsp + 0x48]
call fcn.7ff7c15b11d0
mov r9d, 0x10
lea r8, str.Microsoft_Security_Client
mov rbx, qword [rsp + 0x48]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rcx, qword [0x7ff7c161b240]
cmp rcx, r14
je 0x7ff7c15a300e
test byte [rcx + 0x1c], 1
je 0x7ff7c15a300e
mov edx, 0x1e
mov r9d, esi
lea r8, [0x7ff7c15f8488]
mov rcx, qword [rcx + 0x10]
call fcn.7ff7c15a1eb4
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x7ff7c15a302f
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x7ff7c15f6588]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x7ff7c15a3051
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x7ff7c15a3051
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
call fcn.7ff7c15a18e4
mov rcx, rax
call fcn.7ff7c15b06ac
mov r15, qword [0x7ff7c161b240]
cmp r15, r14
je 0x7ff7c15a30cd
test byte [r15 + 0x1c], 4
je 0x7ff7c15a308d
mov edx, 0x12
lea r8, [0x7ff7c15f8488]
mov rcx, qword [r15 + 0x10]
call fcn.7ff7c15a1e00
mov r15, qword [0x7ff7c161b240]
cmp r15, r14
je 0x7ff7c15a30cd
jmp 0x7ff7c15a30c1
mov rcx, qword [r15 + 8]
test rcx, rcx
je 0x7ff7c15a30be
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov qword [r15 + 8], rdi
mov r15, qword [r15]
test r15, r15
jne 0x7ff7c15a30ab
mov qword [0x7ff7c161b240], r14
cmp byte [0x7ff7c1621059], dil
je 0x7ff7c15a314c
mov rcx, qword [0x7ff7c161b250]
test rcx, rcx
je 0x7ff7c15a314c
cmp byte [0x7ff7c1621058], dil
jne 0x7ff7c15a30fa
mov rax, qword [0x7ff7c1621048]
call qword [0x7ff7c15f6588]
jmp 0x7ff7c15a3145
call qword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [0x7ff7c161b270], edi
mov byte [0x7ff7c161b278], dil
mov qword [0x7ff7c161b258], rdi
movzx eax, word [0x7ff7c161b27a]
test ax, ax
je 0x7ff7c15a3145
movzx eax, ax
dec eax
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
inc eax
movsxd r8, eax
shl r8, 2
xor edx, edx
mov rcx, qword [0x7ff7c161b280]
call sub.msvcrt.dll_memset
mov qword [0x7ff7c161b250], rdi
xor ecx, ecx
call fcn.7ff7c15c0c58
call fcn.7ff7c15b4e44
call fcn.7ff7c15b7bf0
nop
cmp qword [rsp + 0x68], rdi
je 0x7ff7c15a316c
call qword [sym.imp.mpclient.dll_MpConfigUninitialize]
nop
test rbx, rbx
je 0x7ff7c15a3187
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
mov rax, qword [rax + 8]
call qword [0x7ff7c15f6588]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x7ff7c15a3198
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
nop
cmp qword [rsp + 0x70], rdi
je 0x7ff7c15a31a5
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
mov rcx, qword [rsp + 0x1f8]
xor rcx, rsp
call fcn.7ff7c15e78d0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r15
pop r14
pop rdi
ret