Function at 0x140012600
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1b0
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x140315d90]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x208]
test rdi, rdi
jne 0x140012650
xor eax, eax
jmp 0x140012cd9
xor eax, eax
mov dword [rcx + 0x210], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x24], eax
cmp qword [rcx + 0x1f0], rax
je 0x140012cd9
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.14022a8c0
xor edx, edx
lea r8d, [rdx + 0x38]
mov rcx, rdi
call fcn.14022a8c0
xor edi, edi
mov r14, rdi
mov r12, rdi
lea rax, [0x140000000]
lea r15d, [rdi + 0x18]
mov rcx, qword [rbx + 0x208]
mov eax, dword [r14 + rax + 0x3183e0]
mov dword [r12 + rcx], eax
mov ebp, edi
lea rsi, reloc.OLEAUT32.dll_VariantClear
nop
cmp dword [0x140326104], 0
jne 0x1400126e0
mov dword [0x140326100], 0x114
lea rcx, [0x140326100]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [0x140326104], 6
jne 0x1400126f7
cmp dword [0x140326108], 0
jne 0x1400126f7
mov eax, r15d
jmp 0x1400126fc
mov eax, 0x1b
cmp ebp, eax
jge 0x14001293a
movzx r13d, word [rsi]
cmp r13w, 0x20
je 0x14001292e
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rsp + 0xc0]
call fcn.14022a8c0
mov dword [rsp + 0xc0], 0x52
mov dword [rsp + 0xc8], edi
lea rcx, [rsp + 0xd0]
lea r8, [0x140000000]
mov rax, qword [r8 + 0x272f18]
mov qword [rcx], rax
mov rax, qword [r8 + 0x272f20]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xe0]
mov rax, qword [r8 + 0x272f28]
mov qword [rcx], rax
mov rax, qword [r8 + 0x272f30]
mov qword [rcx + 8], rax
lea rcx, [rsp + 0xf0]
mov rax, qword [r8 + 0x272f38]
mov qword [rcx], rax
mov rax, qword [r8 + 0x272f40]
mov qword [rcx + 8], rax
mov word [rsp + 0x100], 0xfffe
movzx edx, word [r14 + r8 + 0x3183e4]
mov word [rsp + 0x102], dx
mov edi, dword [rsi - 4]
mov dword [rsp + 0x104], edi
lea eax, [r13 - 0x11]
movzx ecx, r13w
cmp ax, 0xf
mov eax, 0x20
cmovbe cx, ax
mov word [rsp + 0x10e], cx
movzx eax, cx
imul eax, edx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [rsp + 0x10c], ax
movzx eax, ax
imul eax, edi
mov dword [rsp + 0x108], eax
mov word [rsp + 0x110], 0x16
mov word [rsp + 0x112], r13w
mov eax, dword [r14 + r8 + 0x3183e8]
mov dword [rsp + 0x114], eax
lea rcx, [rsp + 0x118]
mov rax, qword [r8 + 0x272f28]
mov qword [rcx], rax
mov rax, qword [r8 + 0x272f30]
mov qword [rcx + 8], rax
xor edi, edi
mov dword [rsp + 0x20], edi
mov rcx, qword [rbx + 0x1f0]
mov rax, qword [rcx]
lea r9, [rsp + 0x20]
lea r8d, [rdi + 0x68]
lea rdx, [rsp + 0xc0]
call qword [rax + 0x18]
lea rcx, [rsp + 0x130]
lea rdx, [rsp + 0xc0]
lea r8d, [rdi + 0x68]
call fcn.14022a570
movzx edx, word [rsp + 0x10e]
cmp dx, 0x10
jbe 0x1400128a1
movzx ecx, word [rsp + 0x17e]
cmp dx, 0x20
cmovbe cx, r15w
mov word [rsp + 0x17e], cx
jmp 0x1400128a9
mov cx, word [rsp + 0x17e]
movzx eax, word [rsp + 0x172]
movzx ecx, cx
imul eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov word [rsp + 0x17c], ax
movzx eax, ax
imul eax, dword [rsp + 0x174]
mov dword [rsp + 0x178], eax
mov dword [rsp + 0x24], edi
mov rcx, qword [rbx + 0x1f0]
mov rax, qword [rcx]
lea r9, [rsp + 0x24]
mov r8d, 0x68
lea rdx, [rsp + 0x130]
call qword [rax + 0x18]
cmp dword [rsp + 0x20], edi
jne 0x14001290a
cmp dword [rsp + 0x24], edi
je 0x14001292e
mov rcx, qword [rbx + 0x208]
mov eax, dword [rsi - 8]
or dword [r12 + rcx + 4], eax
lea rax, [0x140000000]
mov eax, dword [r14 + rax + 0x3183e0]
or dword [rbx + 0x210], eax
add ebp, 1
add rsi, 0x14
jmp 0x1400126c0
add r12, 8
add r14, r15
cmp r12, 0x38
lea rax, [0x140000000]
jl 0x1400126a1
mov ebp, 1
test byte [rbx + 0x210], 0x20
je 0x1400129a5
call fcn.1401fafc0
test rax, rax
je 0x1400129a5
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x1400129a5
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x1400129a5
add dword [rcx + 0x1ab4], ebp
or dword [rcx + 8], 0x200
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x1400129a5
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rbx + 0xb8], 9
jne 0x140012c0d
lea rcx, [rsp + 0x30]
call fcn.1401616c0
nop
lea r12, [0x140283a18]
mov qword [rsp + 0x30], r12
call fcn.1401fa4b0
mov rdx, rax
mov ecx, edi
test rax, rax
setne cl
test ecx, ecx
jne 0x1400129e8
mov ecx, 0x80004005
call fcn.140003d20
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x58], 7
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdi
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0xb8], edi
mov dword [rsp + 0xbc], edi
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, str.FormatSettings
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.FormatSettings
lea rcx, [rsp + 0x38]
call fcn.140007880
nop
mov qword [rsp + 0x60], rbx
mov rax, qword [rbx]
lea rdx, [rsp + 0x70]
mov rcx, rbx
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0xb0]
call qword [rax + 0x28]
lea rcx, [rsp + 0x30]
call fcn.1400c5ed0
call fcn.1401fafc0
test rax, rax
je 0x140012b10
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140012b10
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140012b10
add dword [rcx + 0x1ab4], 1
mov edx, dword [rcx + 0x10]
shr edx, 0x12
and edx, 1
mov dword [rsp + 0x68], edx
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xb8]
cmp eax, 1
je 0x140012af3
cmp eax, 3
jne 0x140012aff
bt dword [rcx + 8], 0x12
cmovb edx, ebp
mov dword [rsp + 0x68], edx
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x140012b10
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rsp + 0xb8], 0
je 0x140012b24
or dword [rbx + 0x210], 0x80
cmp dword [rsp + 0xbc], 0
je 0x140012b38
or dword [rbx + 0x210], 0x100
mov qword [rsp + 0x30], r12
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x140012b74
lea rdi, [rcx - 8]
lea r9, [fcn.1400c5dd0]
mov r8d, dword [rdi]
mov edx, 0x48
call fcn.1402281b0
mov rcx, rdi
call fcn.1401ebdc0
xor eax, eax
mov qword [rsp + 0xa0], rax
mov rdx, qword [rsp + 0xb0]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012b97
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x140295e58]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012bc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rax, [0x140298b00]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140012bef
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x140012c0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp dword [rbx + 0x210], 0
jne 0x140012c68
cmp dword [rbx + 0x58], 1
jne 0x140012c68
call fcn.1401fafc0
test rax, rax
je 0x140012c68
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140012c68
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140012c68
add dword [rcx + 0x1ab4], 1
test byte [rcx + 0x38], 0x20
je 0x140012c57
xor eax, eax
jmp 0x140012cd9
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x140012c68
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x210]
test eax, eax
jne 0x140012c7b
cmp dword [rbx + 0xb8], 9
je 0x140012cd9
test eax, eax
jne 0x140012cd7
cmp dword [rbx + 0xb8], 4
jne 0x140012cd7
cmp dword [rbx + 0x58], 1
jne 0x140012cd7
call fcn.1401fafc0
test rax, rax
je 0x140012cd7
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0xe8]
test rax, rax
je 0x140012cd7
mov rcx, qword [rax + 0xc0]
test rcx, rcx
je 0x140012cd7
add dword [rcx + 0x1ab4], 1
test byte [rcx + 0x34], 0x20
je 0x140012cc6
xor eax, eax
jmp 0x140012cd9
add dword [rcx + 0x1ab4], 0xffffffff
jne 0x140012cd7
mov rax, qword [rcx]
mov edx, ebp
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, ebp
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.1402272f0
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret