Function at 0x4182a0
Capabilities:
Check os version

Disassembly:
lea r12, [rsp - 0x188]
cmp r12, qword [r14 + 0x10]
jbe 0x418f49
sub rsp, 0x208
mov qword [rsp + 0x200], rbp
lea rbp, [rsp + 0x200]
mov eax, 2
call fcn.00417780
lea rax, [0x00561350]
call fcn.00402480
mov qword [0x0050c298], rax
call fcn.004540e0
mov qword [rsp + 0x38], rax
call fcn.004481e0
mov qword [rax + 0xd0], 5
lea rdi, [rax + 0xc8]
mov qword [rsp + 0x1f8], rdi
cmp dword [0x00560c00], 0
jne 0x418328
lea rdx, [0x004a3b81]
mov qword [rax + 0xc8], rdx
jmp 0x418334
lea rdx, [0x004a3b81]
call fcn.004628e0
mov qword [rsp + 0x1d0], rax
mov byte [rax + 0xf9], 2
mov rdx, qword [rax + 0x90]
mov qword [rsp + 0x1e0], rdx
mov ebx, 2
mov ecx, 6
mov rax, rdx
nop
call fcn.0043c940
movups xmmword [rsp + 0x108], xmm15
lea rdx, [0x00418f60]
mov qword [rsp + 0x108], rdx
mov rdx, qword [rsp + 0x38]
mov qword [rsp + 0x110], rdx
lea rdx, [rsp + 0x108]
mov qword [rsp], rdx
call fcn.004604c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rdx, [0x004ac360]
mov qword [rsp], rdx
call fcn.004604c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x1d0]
mov byte [rdx + 0xf9], 0
mov rax, qword [rsp + 0x1e0]
mov ebx, 4
mov ecx, 2
call fcn.0043c580
cmp byte [0x00512b90], 0
je 0x418405
nop
call fcn.004555e0
mov rcx, qword [rsp + 0x1d0]
mov qword [rcx + 0xd0], 0
cmp dword [0x00560c00], 0
nop
jne 0x41842f
mov qword [rcx + 0xc8], 0
jmp 0x41843e
mov rdi, qword [rsp + 0x1f8]
xor edx, edx
call fcn.004628e0
cmp dword [0x005609e4], 0
jne 0x418f37
lea rax, [0x005613f8]
call fcn.00431060
mov qword [0x005644f0], rax
lea rcx, [0x004ac338]
mov qword [rsp], rcx
call fcn.004604c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
call fcn.004540e0
mov qword [rsp + 0x60], rax
call fcn.004646c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp]
mov qword [rsp + 0x40], rcx
movsxd rdx, dword [rsp + 8]
mov qword [rsp + 0x100], rdx
mov rbx, qword [0x0050c288]
mov rsi, qword [rsp + 0x60]
mov rdi, rsi
sub rsi, rbx
add qword [0x0050c280], rsi
mov qword [0x0050c278], rdi
mov rbx, qword [0x0050c288]
sub rdi, rbx
lea rax, [0x00564500]
mov rbx, rdi
call fcn.004093a0
mov rcx, qword [rsp + 0x40]
imul rcx, rcx, 0x3b9aca00
mov rdx, qword [rsp + 0x100]
add rcx, rdx
lea rdx, [0x005634c8]
mov rbx, rcx
xchg qword [rdx], rcx
mov rcx, qword [rsp + 0x60]
lea rdx, [0x005644e8]
xchg qword [rdx], rcx
movzx ecx, byte [0x005644d8]
mov rdx, qword [0x0050c280]
lea rdi, [0x005634d8]
mov qword [rdi + rcx*8], rdx
movzx ecx, byte [0x005644d8]
lea rdx, [0x00563cd8]
mov qword [rdx + rcx*8], rbx
mov rcx, qword [0x005634d0]
add rcx, qword [0x0050c280]
mov qword [0x005634d0], rcx
movsxd rcx, dword [0x0050c254]
mov qword [rsp + 0x100], rcx
mov rdx, qword [0x0050c268]
sub rdx, qword [0x0050c260]
mov qword [rsp + 0xf8], rdx
lea rax, [0x005613a8]
call fcn.00402220
mov qword [rsp + 0x88], rax
lea rax, [0x005613b0]
call fcn.00402220
mov qword [rsp + 0x80], rax
lea rax, [0x005613b8]
call fcn.00402220
mov qword [rsp + 0x78], rax
lea rax, [0x005613c0]
call fcn.00402220
mov qword [rsp + 0x70], rax
movsxd rcx, dword [0x0050c254]
mov qword [rsp + 0xf0], rcx
mov rdx, qword [0x0050c278]
sub rdx, qword [0x0050c270]
mov qword [rsp + 0xe8], rdx
lea rax, [0x00560cb0]
nop
call fcn.00402220
mov qword [rsp + 0x48], rax
lea rax, [0x00560cb8]
call fcn.00402220
mov rcx, qword [rsp + 0x88]
add qword [0x0050c2a8], rcx
mov rdx, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x78]
lea rsi, [rbx + rdx]
add qword [0x0050c2b0], rsi
mov rsi, qword [rsp + 0x70]
add qword [0x0050c2b8], rsi
mov rdi, qword [rsp + 0x100]
mov r8, qword [rsp + 0xf8]
imul rdi, r8
mov qword [rsp + 0x30], rdi
mov r8, qword [rsp + 0xe8]
mov r9, qword [rsp + 0xf0]
imul r8, r9
mov qword [rsp + 0x68], r8
lea r9, [rdi + r8]
add qword [0x0050c2c0], r9
add rcx, rdi
add rcx, rdx
add rcx, rbx
add rcx, rsi
add rcx, r8
add qword [0x0050c2c8], rcx
mov rcx, qword [rsp + 0x48]
add qword [0x0050c2d0], rcx
add qword [0x0050c2d8], rax
add rcx, rax
add qword [0x0050c2e0], rcx
mov rcx, qword [0x0050c808]
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
movsxd rcx, dword [0x005609e8]
imul rdx, rcx
add rdx, qword [0x0050c810]
mov qword [0x0050c2f8], rdx
lea rax, [0x0050cd30]
call fcn.00402220
add rax, qword [0x0050c2e8]
mov qword [0x0050c2e8], rax
mov rcx, qword [0x0050c2f8]
mov rdx, qword [0x0050c2c8]
add rdx, qword [0x0050c2e0]
add rdx, rax
sub rcx, rdx
mov qword [0x0050c2f0], rcx
mov rcx, qword [0x0050c2c8]
sub rcx, qword [0x0050c2b8]
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
mov rcx, qword [0x0050c2f8]
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
divsd xmm0, xmm1
movsd qword [0x005644e0], xmm0
lea rax, [0x00560cb0]
xor ebx, ebx
call fcn.00402240
lea rax, [0x00560cb8]
xor ebx, ebx
call fcn.00402240
lea rax, [0x0050cd30]
xor ebx, ebx
call fcn.00402240
mov qword [0x0050bdd4], 0
cmp byte [0x0050c218], 0
je 0x418792
inc dword [0x005644dc]
lea rax, [0x0050c240]
call fcn.0040a840
inc dword [0x005644d8]
lea rax, [0x0050c248]
call fcn.004405c0
lea rax, [0x0050c240]
call fcn.0040aa60
lea rax, [0x00560ec0]
mov rbx, qword [rsp + 0x60]
call fcn.0041a280
call fcn.0042e2a0
lea rax, [0x0050bddc]
call fcn.00422c20
nop
test bl, bl
je 0x418f26
mov byte [rsp + 0x2b], bl
mov dword [rsp + 0x2c], eax
lea rax, [0x004ac368]
mov qword [rsp], rax
nop dword [rax + rax]
call fcn.004604c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
call fcn.0042e2e0
nop dword [rax]
call fcn.004256a0
lea rax, [0x004ac320]
mov qword [rsp], rax
call fcn.004604c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x004ac378]
mov qword [rsp], rax
call fcn.004604c0
xorps xmm15, xmm15
mov r14, qword [0x00560b80]
mov r14, qword gs:[r14]
mov r14, qword [r14]
lea rax, [0x0050bddc]
mov ebx, dword [rsp + 0x2c]
movzx ecx, byte [rsp + 0x2b]
call fcn.00422ca0
cmp dword [0x00560e7c], 0
jle 0x418e45
movsd xmm0, qword [0x004b0238]
mulsd xmm0, qword [0x005644e0]
movsd qword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0x118], xmm15
movups xmmword [rsp + 0x120], xmm15
call fcn.004398e0
mov rax, qword [0x0050c260]
sub rax, qword [0x00560b48]
mov rcx, rax
movabs rax, 0x8637bd05af6c69b6
mul rcx
shr rdx, 0x13
lea rax, [rsp + 0x118]
mov ebx, 0x18
mov rcx, rbx
mov rdi, rdx
mov esi, 3
call fcn.00419f80
mov ecx, dword [0x005644d8]
mov qword [rsp + 0xd8], rcx
mov rdx, rax
lea rax, [rsp + 0x188]
mov rsi, rbx
mov rbx, rdx
mov rcx, rsi
nop dword [rax]
call fcn.0044e8a0
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0xd0], rbx
call fcn.004398e0
lea rax, [0x004a39cf]
mov ebx, 3
call fcn.0043a1e0
mov rax, qword [rsp + 0xd8]
call fcn.00439ee0
lea rax, [0x004a38b4]
mov ebx, 2
call fcn.0043a1e0
mov rax, qword [rsp + 0x1f0]
mov rbx, qword [rsp + 0xd0]
call fcn.0043a1e0
lea rax, [0x004a38dc]
mov ebx, 2
call fcn.0043a1e0
movsd xmm0, qword [rsp + 0xe0]
cvttsd2si rax, xmm0
nop dword [rax]
call fcn.00439fe0
lea rax, [0x004a3900]
mov ebx, 3
call fcn.0043a1e0
call fcn.00439960
mov rax, qword [0x0050c260]
movups xmmword [rsp + 0x130], xmm15
movups xmmword [rsp + 0x138], xmm15
mov rcx, qword [0x0050c268]
mov qword [rsp + 0x130], rcx
mov rcx, qword [0x0050c270]
mov qword [rsp + 0x138], rcx
mov rcx, qword [0x0050c278]
mov qword [rsp + 0x140], rcx
xor ecx, ecx
jmp 0x418a6f
sub rdi, rax
lea rax, [rsp + 0x118]
mov ebx, 0x18
mov rcx, rbx
call fcn.0041a060
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0x168]
call fcn.0044e8a0
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0xd0], rbx
call fcn.004398e0
mov rax, qword [rsp + 0x1f0]
mov rbx, qword [rsp + 0xd0]
call fcn.0043a1e0
call fcn.00439960
mov rcx, qword [rsp + 0x98]
inc rcx
mov rax, qword [rsp + 0x50]
cmp rcx, 3
jge 0x418acd
mov qword [rsp + 0x98], rcx
mov rdi, qword [rsp + rcx*8 + 0x130]
mov qword [rsp + 0x50], rdi
test rcx, rcx
je 0x418a05
mov qword [rsp + 0x100], rax
nop dword [rax + rax]
call fcn.004398e0
lea rax, [0x004a38a1]
mov ebx, 1
call fcn.0043a1e0
call fcn.00439960
mov rax, qword [rsp + 0x100]
mov rdi, qword [rsp + 0x50]
jmp 0x418a05
call fcn.004398e0
lea rax, [0x004a4517]
mov ebx, 0xb
nop
call fcn.0043a1e0
call fcn.00439960
lea rax, [0x005613a8]
call fcn.00402220
mov qword [rsp + 0x100], rax
lea rax, [0x005613b0]
call fcn.00402220
mov qword [rsp + 0xf8], rax
lea rax, [0x005613b8]
call fcn.00402220
mov qword [rsp + 0xf0], rax
lea rax, [0x005613c0]
call fcn.00402220
movups xmmword [rsp + 0x1a8], xmm15
movups xmmword [rsp + 0x1b0], xmm15
movups xmmword [rsp + 0x1c0], xmm15
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x1a8], rcx
mov rcx, qword [rsp + 0x100]
mov qword [rsp + 0x1b0], rcx
mov rcx, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0xf0]
add rcx, rdx
mov qword [rsp + 0x1b8], rcx
mov qword [rsp + 0x1c0], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x1c8], rax
xor eax, eax
jmp 0x418c00
lea rax, [rsp + 0x118]
mov ebx, 0x18
mov rcx, rbx
call fcn.0041a060
mov rcx, rbx
mov rbx, rax
lea rax, [rsp + 0x148]
call fcn.0044e8a0
mov qword [rsp + 0x1f0], rax
mov qword [rsp + 0xd0], rbx
call fcn.004398e0
mov rax, qword [rsp + 0x1f0]
mov rbx, qword [rsp + 0xd0]
call fcn.0043a1e0
call fcn.00439960
mov rax, qword [rsp + 0x90]
inc rax
cmp rax, 5
jge 0x418c8d
mov qword [rsp + 0x90], rax
mov rdi, qword [rsp + rax*8 + 0x1a8]
mov qword [rsp + 0x58], rdi
nop
cmp rax, 2
je 0x418c2c
cmp rax, 3
jne 0x418c54
call fcn.004398e0
lea rax, [0x004a38a3]
mov ebx, 1
nop dword [rax]
call fcn.0043a1e0
call fcn.00439960
mov rdi, qword [rsp + 0x58]
jmp 0x418b9e
test rax, rax
je 0x418b9e
nop dword [rax]
call fcn.004398e0
lea rax, [0x004a38a1]
mov ebx, 1
call fcn.0043a1e0
call fcn.00439960
mov rax, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x58]
jmp 0x418b9e
lea rax, [0x00561368]
call fcn.00402480
mov qword [rsp + 0xd8], rax
lea rax, [0x00561378]
call fcn.00402480
mov qword [rsp + 0xc8], rax
mov rcx, qword [0x0050c290]
mov qword [rsp + 0xc0], rcx
mov rdx, qword [0x0050c298]
mov qword [rsp + 0xb8], rdx
mov rbx, qword [0x0050c2a0]
mov qword [rsp + 0xb0], rbx
mov rsi, qword [0x00561348]
mov qword [rsp + 0xa8], rsi
movsxd rdi, dword [0x0050c258]
mov qword [rsp + 0x100], rdi
call fcn.004398e0
lea rax, [0x004a40bc]
mov ebx, 9
call fcn.0043a1e0
mov rax, qword [rsp + 0xc0]
shr rax, 0x14
call fcn.00439ee0
lea rax, [0x004a38c2]
mov ebx, 2
call fcn.0043a1e0
mov rax, qword [rsp + 0xb8]
shr rax, 0x14
call fcn.00439ee0
lea rax, [0x004a38c2]
mov ebx, 2
call fcn.0043a1e0
mov rax, qword [rsp + 0xb0]
shr rax, 0x14
call fcn.00439ee0
lea rax, [0x004a3af0]
mov ebx, 5
call fcn.0043a1e0
mov rax, qword [rsp + 0xa8]
shr rax, 0x14
call fcn.00439ee0
lea rax, [0x004a4251]
mov ebx, 0xa
call fcn.0043a1e0
mov rax, qword [rsp + 0xd8]
shr rax, 0x14
call fcn.00439ee0
lea rax, [0x004a4805]
mov ebx, 0xc
nop dword [rax + rax]
call fcn.0043a1e0
mov rax, qword [rsp + 0xc8]
shr rax, 0x14
call fcn.00439ee0
lea rax, [0x004a4b72]
mov ebx, 0xd
call fcn.0043a1e0
mov rax, qword [rsp + 0x100]
call fcn.00439fe0
lea rax, [0x004a38b6]
mov ebx, 2
call fcn.0043a1e0
call fcn.00439960
cmp byte [0x0050c218], 0
je 0x418e2e
call fcn.004398e0
lea rax, [0x004a4062]
mov ebx, 9
call fcn.0043a1e0
call fcn.00439960
call fcn.004398e0
call fcn.00439b40
call fcn.00439960
nop dword [rax]
call fcn.00439960
lea rax, [0x0050be00]
call fcn.0040a840
mov rcx, qword [0x0050be20]
mov qword [rsp + 0x1d8], rcx
mov rdx, qword [0x0050be28]
mov qword [rsp + 0xa0], rdx
movups xmmword [0x0050be28], xmm15
cmp dword [0x00560c00], 0
nop
jne 0x418e8f
mov qword [0x0050be20], 0
jmp 0x418e9d
lea rdi, [0x0050be20]
xor ebx, ebx
call fcn.00462900
lea rax, [0x0050be00]
call fcn.0040aa60
mov rcx, qword [rsp + 0x1d8]
xor eax, eax
jmp 0x418ee4
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x1e8], rcx
mov rax, qword [rcx]
call fcn.004032e0
mov rcx, qword [rsp + 0x1e8]
add rcx, 0x10
mov rax, qword [rsp + 0xd0]
inc rax
mov rdx, qword [rsp + 0xa0]
cmp rax, rdx
jl 0x418eb5
lea rax, [0x00507290]
call fcn.00448b40
lea rax, [0x00507284]
call fcn.00448b40
mov rax, qword [rsp + 0x1d0]
call fcn.00448200
mov rbp, qword [rsp + 0x200]
add rsp, 0x208
ret
lea rax, [0x004a80b5]
mov ebx, 0x1b
call fcn.004380a0
lea rax, [0x004a8815]
mov ebx, 0x1d
call fcn.004380a0
nop
call fcn.00460600
jmp fcn.004182a0