Function at 0x140436900
Capabilities:
Check for peb beingdebugged flag
Get number of processors

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov edi, r9d
mov ebp, r8d
mov r14, rdx
mov rsi, rcx
mov rax, qword [0x1406a7e00]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov r12, qword [rcx + 0x40]
movzx eax, word [rdx]
movzx ecx, word [rdx + 2]
imul ecx, eax
cmp r9d, 1
lea ebx, [rcx + rcx*2]
cmovne ebx, ecx
cmp ebx, dword [rsi + 0x94]
jle 0x14043695f
lea rcx, [rsi + 0x80]
mov edx, ebx
call fcn.1400ba6d0
mov rcx, qword [rsi + 0x88]
mov r8d, ebx
xor edx, edx
call fcn.140562a70
mov eax, dword [r14 + 0x2c]
shl eax, 0xe
movzx eax, ax
cvtsi2ss xmm0, eax
movss xmm1, dword [0x14059be04]
mulss xmm0, xmm1
movss dword [rsi + 0xd0], xmm0
mov eax, dword [r14 + 0x2c]
shr eax, 4
and eax, 0xc000
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
mulss xmm0, xmm1
movss dword [rsi + 0xd4], xmm0
mov dword [rsp + 0xac], 0
mov eax, dword [r14 + 0x2c]
shr eax, 2
mov word [rsp + 0xaa], ax
xorps xmm0, xmm0
movlps qword [rsp + 0xa0], xmm0
mov dword [rsp + 0x7c], 1
lea rax, [rsp + 0xac]
mov qword [rsp + 0x88], rax
mov rax, qword [r12 + 0x58]
mov qword [rsp + 0x70], rax
movss xmm0, dword [rsi + 0xd8]
movss dword [rsp + 0x78], xmm0
lea rax, [rsp + 0xaa]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x98], 0
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x68], 0
mov eax, dword [0x1406ae4c0]
mov ecx, dword [0x1406affd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x140436c48
mov r13, qword [r12 + 0x70]
xor r15d, r15d
lea rax, [0x1406ae498]
test r13, r13
cmove r15, rax
jne 0x140436a80
mov rcx, r15
call fcn.1404d7c10
lea r9, [rsi + 0xc0]
mov rcx, qword [r12 + 0x40]
test rcx, rcx
je 0x140436aaf
mov edx, dword [rsi + 0xf0]
mov eax, dword [rsi + 0xf4]
cmp eax, 1
je 0x140436ba5
cmp edx, 1
je 0x140436ba5
mov rcx, qword [r12 + 0x38]
mov eax, dword [rsi + 0xec]
mov r8, qword [rcx]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x40], rdx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
lea rdx, [rsp + 0x70]
movss xmm2, dword [0x1406908dc]
call qword [r8 + 0xb8]
test eax, eax
js 0x140436bf0
test r13, r13
jne 0x140436b08
mov rcx, r15
call fcn.1404d7c40
movsx eax, word [r14 + 6]
mov dword [rsp + 0x58], eax
movsx ecx, word [r14 + 4]
mov dword [rsp + 0x5c], ecx
movzx edx, word [r14]
add edx, eax
mov dword [rsp + 0x60], edx
movzx eax, word [r14 + 2]
add eax, ecx
mov dword [rsp + 0x64], eax
mov eax, dword [0x1406ae4c0]
mov ecx, dword [0x1406affd8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x30]
jg 0x140436c8a
mov r15, qword [r12 + 0x70]
xor r14d, r14d
test r15, r15
lea rax, [0x1406ae498]
cmove r14, rax
jne 0x140436b74
mov rcx, r14
call fcn.1404d7ce0
mov rcx, qword [rsp + 0x68]
mov r9, qword [rsi + 0x88]
mov rax, qword [rcx]
mov dword [rsp + 0x20], ebx
lea r8, [rsp + 0x58]
mov edx, edi
call qword [rax + 0x20]
mov edi, eax
test r15, r15
jne 0x140436ba0
mov rcx, r14
call fcn.1404d7d30
shr edi, 0x1f
jmp 0x140436c02
mov r8d, dword [rsi + 0xec]
mov r10, qword [rcx]
lea r11, [rsp + 0x68]
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
lea rdx, [rsp + 0x70]
mov r8, r9
mov r9d, ebp
call qword [r10 + 0xf0]
test eax, eax
jns 0x140436afb
mov edi, 1
test r13, r13
jne 0x140436c02
mov rcx, r15
call fcn.1404d7c40
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140436c12
mov rax, qword [rcx]
call qword [rax + 0x10]
test edi, edi
jne 0x140436c1f
mov rsi, qword [rsi + 0x88]
jmp 0x140436c21
xor esi, esi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1405602f0
mov rax, rsi
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1406ae4c0]
call fcn.140560470
cmp dword [0x1406ae4c0], 0xffffffff
jne 0x140436a60
lea rcx, [0x1406ae498]
call fcn.1404d7bb0
lea rcx, [0x140438590]
call fcn.1405607f4
lea rcx, [0x1406ae4c0]
call fcn.140560410
jmp 0x140436a60
lea rcx, [0x1406ae4c0]
call fcn.140560470
cmp dword [0x1406ae4c0], 0xffffffff
jne 0x140436b54
lea rcx, [0x1406ae498]
call fcn.1404d7bb0
lea rcx, [0x140438590]
call fcn.1405607f4
lea rcx, [0x1406ae4c0]
call fcn.140560410
jmp 0x140436b54