Function at 0x100050d7c
Capabilities:
Check os version

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x678
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov rax, qword [0x1000a1108]
xor rax, rsp
mov qword [rsp + 0x660], rax
mov qword [rsp + 0x48], r9
mov ebx, r8d
mov qword [rsp + 0x50], rdx
mov r13, rcx
mov rax, qword [rsp + 0x6e0]
mov qword [rsp + 0x40], rax
mov r15, qword [rsp + 0x6f0]
mov r14, qword [rsp + 0x6f8]
mov rdi, qword [0x1000a1180]
mov qword [rsp + 0x20], rdi
mov r9d, 0x200
lea r8, [rsp + 0x260]
mov edx, ebx
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jne 0x100050e0c
mov esi, 0x80004005
jmp 0x100050e29
lea rdx, [rsp + 0x260]
lea rcx, [rsp + 0x20]
call fcn.1000509cc
mov esi, eax
test eax, eax
jns 0x100050e54
mov rdi, qword [rsp + 0x20]
lea rcx, [rdi - 0xc]
lea rbp, [0x1000a1170]
cmp rcx, rbp
je 0x100050e4d
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100050e4d
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, esi
jmp 0x10005144b
mov r12d, dword [rsp + 0x6e8]
mov edi, r12d
and edi, 0xff00
mov eax, r12d
mov ebp, 9
and eax, 0xf
jne 0x100050e79
lea esi, [rbp - 8]
mov edi, esi
jmp 0x100050ede
cmp eax, 1
jne 0x100050e90
mov esi, ebp
and edi, 0x100
neg edi
sbb edi, edi
neg edi
inc edi
jmp 0x100050ede
cmp eax, 4
jne 0x100050ea9
lea esi, [rax + 2]
and edi, 0x100
or edi, 0x600
shr edi, 8
jmp 0x100050ede
cmp eax, 3
jne 0x100050ec2
lea esi, [rax + 0xb]
and edi, 0x100
or edi, 0x600
shr edi, 8
jmp 0x100050ede
cmp eax, 5
jne 0x10005141d
lea esi, [rax + 0x13]
and edi, 0x100
neg edi
sbb edi, edi
and edi, 0xfffffffe
add edi, 4
mov dword [rsp + 0x140], VarUI4FromDisp
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [rsp + 0x144], 6
jb 0x10005131d
xor edx, edx
mov r8d, LoadRegTypeLib
lea rcx, [rsp + 0xa4]
call sub.msvcrt.dll_memset
mov dword [rsp + RegisterTypeLib], 0xa0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xa4], rax
mov rax, qword [r13 + 8]
mov qword [rsp + 0xac], rax
mov dword [rsp + 0xb4], ebp
mov dword [rsp + 0xb8], esi
movzx eax, bx
mov qword [rsp + 0xbc], rax
mov rax, qword [rsp + 0x48]
mov rax, qword [rax]
mov qword [rsp + 0xcc], rax
mov rax, qword [rsp + 0x40]
mov rax, qword [rax]
mov qword [rsp + 0xd4], rax
mov dword [rsp + 0xe8], edi
lea rax, [0x100050c90]
mov qword [rsp + 0x12c], rax
mov qword [rsp + 0x134], r13
test r12b, 0x10
je 0x100050fa9
mov qword [rsp + 0xc4], 0xfffe
jmp 0x100050fe3
mov eax, r12d
and eax, 0x30
cmp al, 0x30
jne 0x100050fc1
mov qword [rsp + 0xc4], 0xffff
jmp 0x100050fe3
mov cl, r12b
and cl, 0x40
mov rax, qword [rsp + 0xc4]
mov edx, 0xfffd
cmp cl, 0x40
cmove rax, rdx
mov qword [rsp + 0xc4], rax
or ebx, 0xffffffff
cmp dword [r13 + 0x14], ebx
je 0x10005100d
movzx eax, word [r13 + 0x14]
mov qword [rsp + 0xfc], rax
mov eax, 0x109
cmp byte [r13 + 0x18], 0
cmovne ebp, eax
mov dword [rsp + 0xb4], ebp
mov rax, qword [0x1000a1180]
mov qword [rsp + 0x30], rax
lea rdi, [0x100002dec]
mov rsi, qword [r14]
mov ecx, 1
lea rbp, [0x1000a1170]
repe cmpsw word [rsi], word [rdi]
je 0x10005118a
mov rax, qword [0x1000a1180]
mov qword [rsp + 0x38], rax
mov r8, qword [r14]
lea rdx, [0x100004c38]
lea rcx, [rsp + 0x38]
call fcn.10001646c
test eax, eax
setne al
test al, al
jne 0x1000510d1
mov rcx, qword [rsp + 0x38]
add rcx, 0xfffffffffffffff4
lea rbp, [0x1000a1170]
cmp rcx, rbp
je 0x100051088
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100051088
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000510a8
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000510a8
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000510c7
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000510c7
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004005
jmp 0x10005144b
lea r9, [0x100004c60]
mov rdi, qword [rsp + 0x38]
mov r8, rdi
mov edx, 0xf75e
lea rcx, [rsp + 0x30]
call fcn.10002e744
test eax, eax
setne al
test al, al
jne 0x100051163
lea rcx, [rdi - 0xc]
lea rbp, [0x1000a1170]
cmp rcx, rbp
je 0x10005111a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10005111a
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x10005113a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10005113a
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100051159
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100051159
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004005
jmp 0x10005144b
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x124], rax
lea rcx, [rdi - 0xc]
cmp rcx, rbp
je 0x10005118a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10005118a
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
lea r9, [rsp + 0x88]
xor r8d, r8d
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0xa0]
call qword [sym.imp.COMCTL32.dll_Ordinal_345]
test eax, eax
jns 0x1000512c0
bts r12d, 0x10
lea rdx, [0x100003d30]
lea rcx, [rsp + 0x78]
call fcn.10001ea80
nop
lea r8, [rsp + 0x78]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.10003aa58
nop
mov r8, qword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.10003aa58
nop
mov r9d, r12d
mov r8, qword [rsp + 0x20]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [r15], eax
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100051231
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100051231
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x10005125a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10005125a
mov rcx, qword [rsp + 0x70]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x78]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x10005127a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10005127a
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x10005129a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10005129a
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000512b9
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000512b9
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x10005144b
mov eax, dword [rsp + 0x28]
cmp eax, 2
jne 0x1000512e9
test r12d, r12d
jne 0x1000512d9
lea eax, [r12 + 1]
mov dword [rsp + 0x28], eax
jmp 0x1000512e9
test r12b, 4
mov ecx, 7
cmovne eax, ecx
mov dword [rsp + 0x28], eax
mov dword [r15], eax
and qword [r13], 0
mov rcx, qword [rsp + 0x30]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000513fa
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000513fa
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x1000513fa
bts r12d, 0x10
lea rdx, [0x100003d30]
lea rcx, [rsp + 0x68]
call fcn.10001ea80
nop
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.10003aa58
nop
mov r8, qword [rsp + 0x40]
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.10003aa58
nop
mov r9d, r12d
mov r8, qword [rsp + 0x20]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_MessageBoxW]
mov dword [r15], eax
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
lea rbp, [0x1000a1170]
or ebx, 0xffffffff
cmp rcx, rbp
je 0x1000513b1
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000513b1
mov rcx, qword [rsp + 0x80]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000513da
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000513da
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x68]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000513fa
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000513fa
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100051419
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100051419
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x10005144b
mov rcx, qword [rsp + 0x20]
add rcx, 0xfffffffffffffff4
lea rbp, [0x1000a1170]
cmp rcx, rbp
je 0x100051446
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100051446
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov eax, 0x80004005
mov rcx, qword [rsp + 0x660]
xor rcx, rsp
call fcn.10007a3b0
add rsp, 0x678
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret