Function at 0x18004af2c
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x110
mov rax, qword [0x1801170a0]
xor rax, rsp
mov qword [rbp], rax
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x60], rdx
call fcn.18004b20c
test al, al
mov r15d, reloc.WS2_32.dll_recv
jne 0x18004af7b
mov r15, qword [r14 + 0x10]
mov rbx, qword [r14 + 0x48]
sub rbx, r15
call fcn.18007dc5c
shr eax, 1
mov r13d, 1
cmp eax, r13d
cmova r13d, eax
mov ecx, r13d
xor edx, edx
mov rax, rbx
div rcx
mov r12, rax
mov qword [rsp + 0x60], rax
mov edx, 2
lea rcx, [rbp - 0x50]
call fcn.18007da28
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
and qword [rsp + 0x40], 0
movdqu xmmword [rsp + 0x48], xmm0
xor r8d, r8d
mov qword [rsp + 0x58], r8
xor ebx, ebx
mov rdi, qword [rsp + 0x50]
test r13d, r13d
je 0x18004b0ba
mov rcx, qword [r14 + 0x40]
mov edx, ebx
imul rdx, r12
add rdx, rcx
lea eax, [rbx + 1]
mov ebx, eax
cmp eax, r13d
jne 0x18004b008
sub rcx, rdx
sub rcx, r15
add rcx, qword [r14 + 0x48]
jmp 0x18004b00b
mov rcx, r12
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x78], rcx
mov qword [rbp - 0x80], r14
lea rax, [rbp - 0x50]
mov qword [rbp - 0x78], rax
lea rax, [rsp + 0x30]
mov qword [rbp - 0x70], rax
cmp rdi, r8
je 0x18004b094
mov ecx, 0x28
call fcn.18007f008
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [rbp - 0x70]
movsd qword [rax + 0x20], xmm0
mov qword [rbp - 0x60], rax
lea r12, [rdi + 8]
mov qword [rsp + 0x28], r12
and dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x18004bcfc]
xor edx, edx
xor ecx, ecx
call fcn.180086c20
mov qword [rdi], rax
test rax, rax
je 0x18004b1e4
add rdi, 0x10
mov qword [rsp + 0x50], rdi
mov r12, qword [rsp + 0x60]
jmp 0x18004b0ab
lea r8, [rsp + 0x70]
mov rdx, rdi
lea rcx, [rsp + 0x48]
call fcn.18004b588
mov rdi, qword [rsp + 0x50]
cmp ebx, r13d
jae 0x18004b0ba
mov r8, qword [rsp + 0x58]
jmp 0x18004afe5
mov rbx, qword [rsp + 0x48]
xor r14d, r14d
cmp rbx, rdi
je 0x18004b103
cmp dword [rbx + 8], r14d
je 0x18004b0fd
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbx + 8], eax
je 0x18004b1ff
movups xmm0, xmmword [rbx]
movdqu xmmword [rbp - 0x60], xmm0
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.18007dc7c
test eax, eax
jne 0x18004b1f4
xorps xmm0, xmm0
movdqu xmmword [rbx], xmm0
add rbx, 0x10
jmp 0x18004b0c2
mov rdx, qword [rsp + 0x38]
mov r8, rdx
mov rcx, qword [rsp + 0x30]
sub r8, rcx
sar r8, 3
mov r9b, r14b
call fcn.18004b810
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x40], r14
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x38], r14
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], r14
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
lea rcx, [rsp + 0x48]
call fcn.18004b368
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x18004b1a5
mov rax, qword [rsp + 0x40]
sub rax, rcx
sar rax, 3
lea rdx, [rax*8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004b192
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004b1de
call fcn.18007f000
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
lea rcx, [rbp - 0x50]
call fcn.18007da14
mov rax, rsi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.18007efe0
lea r11, [rsp + 0x110]
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.180085f74
nop
and dword [r12], 0
mov ecx, 6
call fcn.18007dbf8
nop
mov ecx, 2
call fcn.18007dbf8
int3
mov ecx, 5
call fcn.18007dbf8
int3