Function at 0x140154860
Capabilities:
Create thread

Disassembly:
mov byte [rsp + 0x18], r8b
mov byte [rsp + 0x10], dl
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x88
movzx r13d, r8b
movzx edi, dl
mov r14, rcx
call fcn.140315d4c
mov rbx, rax
call fcn.140315d30
cqo
idiv rbx
imul rcx, rax, 0x3b9aca00
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
add rcx, rax
movabs rax, 0x431bde82d7b634db
imul rcx
mov r15, rdx
sar r15, 0x12
mov rax, r15
shr rax, 0x3f
add r15, rax
mov qword [rbp + 0x7f], r15
mov rsi, qword [r14 + 0x58]
mov r12, qword [r14 + 0x60]
cmp rsi, r12
je 0x1401549a7
mov qword [rbp - 0x19], r14
lea rcx, [0x140155050]
mov r15d, dword [rsi]
mov dword [rbp + 0x67], r15d
mov rdi, qword [r14 + 0x48]
cmp rdi, qword [r14 + 0x50]
je 0x140154964
mov ecx, 0x18
call fcn.1403171f0
mov byte [rax], r13b
movzx ecx, byte [rbp + 0x6f]
mov byte [rax + 1], cl
mov dword [rax + 4], r15d
mov qword [rax + 8], r14
lea rcx, [0x140155050]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x67], rax
lea rcx, [rdi + 8]
mov qword [rsp + 0x28], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x140156080]
xor edx, edx
xor ecx, ecx
call fcn.14032515c
mov qword [rdi], rax
test rax, rax
je 0x140154cf8
add qword [r14 + 0x48], 0x10
jmp 0x140154992
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x19]
mov r8, rcx
mov rdx, rdi
lea rcx, [r14 + 0x40]
call fcn.140155a90
add rsi, 4
cmp rsi, r12
jne 0x1401548ea
movzx edi, byte [rbp + 0x6f]
mov r15, qword [rbp + 0x7f]
mov rcx, r14
call fcn.140155680
cmp qword [r14 + 0x38], 0
je 0x140154a32
mov rax, qword [r14 + 0x30]
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x140154a32
mov rcx, qword [rax + 0x28]
mov rdx, qword [rcx + 0x28]
test rdx, rdx
je 0x1401549de
mov ecx, dword [rdx + 0x18]
shr ecx, 1
and cl, 1
jne 0x140154ad7
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
je 0x140154a0a
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x140154a05
cmp rax, qword [rcx + 0x10]
jne 0x140154a05
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1401549f2
mov rax, rcx
jmp 0x140154a2c
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
jne 0x140154a2c
nop word [rax + rax]
mov rax, rcx
mov rcx, qword [rcx]
cmp byte [rcx + 0x19], 0
je 0x140154a20
cmp byte [rax + 0x19], 0
je 0x1401549c3
mov rbx, qword [r14 + 0x58]
mov ecx, 0x18
call fcn.1403171f0
mov byte [rax], dil
mov ecx, dword [rbx]
mov dword [rax + 4], ecx
mov qword [rax + 8], r14
lea rcx, [0x1401552e0]
mov qword [rax + 0x10], rcx
mov qword [rbp + 0x67], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
xor edi, edi
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140156020]
xor edx, edx
xor ecx, ecx
call fcn.14032515c
mov qword [rbp - 0x19], rax
test rax, rax
je 0x140154cea
cmp dword [rbp - 0x11], edi
je 0x140154d07
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbp - 0x11], eax
je 0x140154d12
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
xor edx, edx
lea rcx, [rbp - 9]
call fcn.140316154
test eax, eax
jne 0x140154cdf
cmp qword [r14 + 8], rdi
jne 0x140154ad9
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edi, edi
cmp qword [r14 + 0x38], 0
jne 0x140154b9d
mov rbx, qword [r14 + 0x58]
mov ecx, 0x30
call fcn.1403171f0
mov qword [rbp + 0x67], rax
mov rcx, qword [r14 + 8]
mov qword [rax], 1
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rdi
xor ecx, ecx
mov qword [rax + 0x20], rcx
mov qword [rax + 0x28], rdi
mov ecx, dword [rbx]
mov dword [rbp - 0x19], ecx
mov qword [rbp - 0x11], rax
lea rcx, [r14 + 0x30]
lea r8, [rbp - 0x19]
lea rdx, [rbp - 9]
call fcn.140155cd0
call fcn.140315d4c
mov rbx, rax
call fcn.140315d30
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rdx, rcx, 0x3b9aca00
add rdx, rax
movabs rax, 0x431bde82d7b634db
imul rdx
sar rdx, 0x12
mov r9, rdx
shr r9, 0x3f
add r9, rdx
sub r9, r15
lea r8, str.e_44me_1_37m_randomx_e_0m
lea rdx, str.e_0m_se_1_33mfailed_to_allocate_RandomX_datasets__switching_to_slow_modee_1_30m___llu_ms_e_0m
mov ecx, 4
call fcn.140026210
mov byte [r14], 1
mov al, 1
jmp 0x140154ac3
cmp qword [r14 + 8], 0
je 0x140154bba
mov rax, qword [r14 + 0x58]
mov edx, dword [rax]
mov rcx, r14
call fcn.1401547a0
mov rcx, qword [r14 + 8]
mov qword [rax + 0x10], rcx
lea rdx, [rbp - 9]
mov rcx, r14
call fcn.140154fa0
mov rdi, qword [rbp - 9]
mov rsi, qword [rbp - 1]
cmp rdi, rsi
jne 0x140154bdc
lea r15, [0x140432360]
jmp 0x140154bf1
lea rax, str.e_1_31m
lea r15, str.e_1_33m
test rdi, rdi
cmove r15, rax
call fcn.140315d4c
mov rbx, rax
call fcn.140315d30
cqo
idiv rbx
mov rcx, rax
imul rax, rdx, 0x3b9aca00
cqo
idiv rbx
imul rdx, rcx, 0x3b9aca00
add rdx, rax
movabs rax, 0x431bde82d7b634db
imul rdx
sar rdx, 0x12
mov rax, rdx
shr rax, 0x3f
add rdx, rax
xorps xmm0, xmm0
test rsi, rsi
je 0x140154c96
test rdi, rdi
js 0x140154c4b
cvtsi2sd xmm0, rdi
jmp 0x140154c63
mov rcx, rdi
shr rcx, 1
mov rax, rdi
and eax, 1
or rcx, rax
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
xorps xmm1, xmm1
test rsi, rsi
js 0x140154c72
cvtsi2sd xmm1, rsi
jmp 0x140154c8a
mov rcx, rsi
shr rcx, 1
mov rax, rsi
and eax, 1
or rcx, rax
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
divsd xmm0, xmm1
mulsd xmm0, qword [0x140438258]
sub rdx, qword [rbp + 0x7f]
mov r9, qword [rbp + 7]
shr r9, 0x14
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rdi
movsd qword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], r15
lea r8, str.e_44me_1_37m_randomx_e_0m
lea rdx, str._se_1_36m___e_0me_1_32mallocatede_0me_1_36m__4zu_MBe_0m_huge_pages__s_3.0f____u__ue_0me_1_30m___llu_ms_e_0m
mov ecx, 6
call fcn.140026210
mov byte [r14], 1
mov al, 1
jmp 0x140154ac3
mov ecx, 2
call fcn.140315a14
nop
mov dword [rbp - 0x11], edi
mov ecx, 6
call fcn.140315a14
nop
mov dword [rdi + 8], r15d
mov ecx, 6
call fcn.140315a14
nop
mov ecx, 1
call fcn.140315a14
int3
mov ecx, 5
call fcn.140315a14
int3