Function at 0x180161850
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x1804be628]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r15d, edx
cmp edx, 0x800
jb 0x18016189a
xor al, al
jmp 0x180161ca4
cmp dword [0x1804c5100], r15d
je 0x180161ca2
call fcn.18002eaa0
mov qword [rbp - 0x80], rax
mov rdi, r15
lea r13, [0x180434790]
mov r13, qword [r13 + r15*8]
mov qword [rsp + 0x78], r13
xor esi, esi
mov rbx, qword [0x1804c50f0]
test rbx, rbx
je 0x1801618e4
cmp qword [rbx], r13
jae 0x18016192f
test rbx, rbx
je 0x1801618e4
mov rcx, rbx
call fcn.180062bd0
mov ecx, 0x28
call fcn.18031edd0
mov rbx, rax
mov qword [rsp + 0x30], rax
lea rax, [r13 - 1]
and rax, 0xffffffffffe00000
add rax, 0x200000
mov qword [rbx], rax
mov dword [rbx + 8], esi
mov qword [rbx + 0x10], rax
xor eax, eax
mov dword [rbx + 0x18], eax
mov qword [rbx + 0x20], rsi
lea edx, [rax + 0x40]
mov rcx, qword [rbx]
call fcn.18032df50
mov qword [rbx + 0x20], rax
mov qword [0x1804c50f0], rbx
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movups xmmword [rbp - 0x68], xmm1
test r15d, r15d
je 0x180161995
xor edx, edx
mov r8d, 0xe0
lea rcx, [rbp - 0x50]
call fcn.180321c40
mov dword [rbp + 0x88], 0x80000008
mov r8d, 0x20
lea rdx, [rbp - 0x78]
lea rcx, [rbp - 0x50]
call fcn.1800156a0
lea rcx, [rbp - 0x50]
call fcn.1800158c0
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x68], xmm1
sub rdi, 1
jne 0x180161942
mov rbx, qword [0x1804c50f0]
movups xmmword [rbp - 0x78], xmm0
movups xmmword [rbp - 0x68], xmm1
lea r8, [rbp - 0x78]
mov rdx, r13
mov rcx, qword [rbx + 0x20]
call fcn.18016d3e8
mov rax, qword [0x1804c50f0]
mov rcx, qword [rax + 0x20]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], r13
mov rdx, r13
shr rdx, 6
mov dword [rsp + 0x68], edx
lea eax, [rdx - 1]
mov r14d, 1
test edx, eax
jne 0x1801619e8
mov qword [rsp + 0x6c], r14
bsr eax, edx
mov dword [rsp + 0x74], eax
jmp 0x180161a27
bsr ecx, edx
add ecx, 0x20
mov dword [rsp + 0x74], ecx
mov r9, r14
shl r9, cl
mov r8d, edx
xor edx, edx
mov rax, r9
div r8
mov ecx, r8d
imul rcx, rax
sub r9, rcx
lea rcx, [r9 + r9]
cmp rcx, r8
jae 0x180161a1d
mov dword [rsp + 0x70], r14d
jmp 0x180161a23
inc eax
mov dword [rsp + 0x70], esi
mov dword [rsp + 0x6c], eax
lea r12, [r13 + 0xff]
shr r12, 6
mov rcx, r12
shl rcx, 4
mov r9, qword [0x1804c5110]
mov rdx, r9
mov r8, qword [0x1804c5108]
sub rdx, r8
sar rdx, 2
cmp rcx, rdx
jae 0x180161a63
lea rax, [r8 + rcx*4]
mov qword [0x1804c5110], rax
jmp 0x180161aa7
jbe 0x180161aa7
mov rax, qword [0x1804c5118]
sub rax, r8
sar rax, 2
cmp rcx, rax
jbe 0x180161a89
mov rdx, rcx
lea rcx, [0x1804c5108]
call fcn.180066610
jmp 0x180161aa7
sub rcx, rdx
lea rbx, [r9 + rcx*4]
mov r8, rbx
sub r8, r9
xor edx, edx
mov rcx, r9
call fcn.180321c40
mov qword [0x1804c5110], rbx
call fcn.18031dd10
cmp eax, 1
cmovb eax, r14d
mov esi, eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], 0
test eax, eax
je 0x180161bb7
movabs rax, 0xfffffffffffffff
cmp rsi, rax
ja 0x180161cda
mov edx, esi
lea rcx, [rbp - 0x78]
call fcn.180158f90
xor r13d, r13d
xor ebx, ebx
mov rdi, qword [rbp - 0x70]
lea r8, [0x1804c50f0]
xor edx, edx
mov rax, r13
div rsi
mov rcx, rax
lea rax, [r12 + r13]
mov r13, rax
xor edx, edx
div rsi
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
cmp rdi, qword [rbp - 0x68]
je 0x180161b8f
mov ecx, 0x18
call fcn.18031edd0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movsd xmm1, qword [rsp + 0x40]
movsd qword [rax + 0x10], xmm1
mov qword [rsp + 0x30], rax
lea rcx, [rdi + 8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x1801621e0]
xor edx, edx
xor ecx, ecx
call fcn.18032d054
mov qword [rdi], rax
test rax, rax
je 0x180161ce0
mov rdi, qword [rbp - 0x70]
add rdi, 0x10
mov qword [rbp - 0x70], rdi
jmp 0x180161ba4
lea r8, [rsp + 0x30]
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.180161fd0
mov rdi, qword [rbp - 0x70]
inc rbx
cmp rbx, rsi
jb 0x180161af4
mov r13, qword [rsp + 0x78]
jmp 0x180161bbb
mov rdi, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
cmp rbx, rdi
je 0x180161c0f
cmp dword [rbx + 8], 0
je 0x180161d0e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbx + 8], eax
je 0x180161d03
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x30], xmm0
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.18031dd30
test eax, eax
jne 0x180161cf8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
add rbx, 0x10
cmp rbx, rdi
jne 0x180161bc4
mov rdi, qword [rbp - 0x70]
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x180161c6b
mov rax, rbx
cmp rbx, rdi
je 0x180161c33
nop dword [rax]
cmp dword [rax + 8], 0
jne 0x180161cd4
add rax, 0x10
cmp rax, rdi
jne 0x180161c20
mov rdx, qword [rbp - 0x68]
sub rdx, rbx
and rdx, 0xfffffffffffffff0
mov rax, rbx
cmp rdx, 0x1000
jb 0x180161c63
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180161cf2
mov rcx, rbx
call fcn.18031ee0c
mov qword [0x1804c50f8], r13
mov dword [0x1804c5100], r15d
call fcn.18002eaa0
sub rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, r15d
lea r8, str.e_45_1me_1_37m_miner___e_0m
lea rdx, str._s_e_0_33mKawPowe_0m_light_cache_for_epoch_e_1_37m_ue_0m_calculated_e_1_30m__llums_e_0m
mov ecx, 6
call fcn.180025c20
mov al, 1
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.18031edb0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18032a308
nop
call fcn.180014190
nop
mov dword [rdi + 8], 0
mov ecx, 6
call fcn.18031d5f0
nop
call fcn.180325e9c
nop
mov ecx, 2
call fcn.18031d5f0
int3
mov ecx, 5
call fcn.18031d5f0
int3
mov ecx, r14d
call fcn.18031d5f0
int3