Function at 0x140040cd0
Capabilities:
Resume thread

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x9a8]
sub rsp, 0xaa8
mov rax, qword [0x1400f0020]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov qword [rbp + 0x18], r9
mov rdi, r8
mov qword [rbp + 0x10], r8
mov rbx, rdx
mov r13, rcx
mov qword [rsp + 0x50], rcx
mov r14, qword [rbp + 0xa10]
mov qword [rsp + 0x48], r14
xor edx, edx
mov r8d, 0x2cc
lea rcx, [rbp + 0x50]
call fcn.140089280
xor edx, edx
mov r8d, 0x670
lea rcx, [rbp + 0x320]
call fcn.140089280
cmp qword [r13 + 0x40], 0
jne 0x140040d55
mov eax, 0xc0000225
jmp 0x14004175a
mov r8, rdi
mov rdx, rbx
mov rcx, r13
call fcn.1400428c0
test eax, eax
js 0x14004175a
mov rcx, qword [r13 + 0x40]
test rcx, rcx
je 0x140040d7a
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [r14]
call fcn.140056950
test al, al
jne 0x140040d9a
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x14004175a
xor edi, edi
mov qword [rbp + 0x40], rdi
mov rax, qword [r13]
mov rcx, qword [rax + 0x10]
mov edx, edi
cmp byte [rcx + 0x15], dl
sete dl
lea rcx, [rbp + 0x40]
call fcn.140017bf8
nop
mov rax, qword [r13]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rbp + 0x40]
cmp byte [rcx + 0x15], dil
jne 0x140041335
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400f5e48], eax
jle 0x140040ee7
lea rcx, [0x1400f5e48]
call fcn.14006a95c
cmp dword [0x1400f5e48], 0xffffffff
jne 0x140040ee7
movaps xmm0, xmmword [0x1400d2dc0]
movaps xmmword [0x1400f5e50], xmm0
movaps xmm1, xmmword [0x1400d2df0]
movaps xmmword [0x1400f5e60], xmm1
movaps xmm0, xmmword [0x1400d2dd0]
movaps xmmword [0x1400f5e70], xmm0
movaps xmm1, xmmword [0x1400d2de0]
movaps xmmword [0x1400f5e80], xmm1
movaps xmm0, xmmword [0x1400d2e20]
movaps xmmword [0x1400f5e90], xmm0
movaps xmm1, xmmword [0x1400d2e30]
movaps xmmword [0x1400f5ea0], xmm1
movaps xmm0, xmmword [0x1400d2e40]
movaps xmmword [0x1400f5eb0], xmm0
movaps xmm1, xmmword [0x1400d2e50]
movaps xmmword [0x1400f5ec0], xmm1
movaps xmm0, xmmword [0x1400d2e60]
movaps xmmword [0x1400f5ed0], xmm0
movaps xmm1, xmmword [0x1400d2e70]
movaps xmmword [0x1400f5ee0], xmm1
movaps xmm0, xmmword [0x1400d2e80]
movaps xmmword [0x1400f5ef0], xmm0
movaps xmm1, xmmword [0x1400d2e90]
movaps xmmword [0x1400f5f00], xmm1
movaps xmm0, xmmword [0x1400d2ea0]
movaps xmmword [0x1400f5f10], xmm0
movaps xmm1, xmmword [0x1400d2eb0]
movaps xmmword [0x1400f5f20], xmm1
movaps xmm0, xmmword [0x1400d2e10]
movaps xmmword [0x1400f5f30], xmm0
lea rcx, [0x1400f5e48]
call fcn.14006a8fc
mov rdx, qword [r14]
mov dword [rbp + 0x350], 0x100001
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x320]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x58]
mov esi, eax
test eax, eax
js 0x14004136b
lea r14, [rbx + 0xa8]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x78
mov rax, qword [r14]
lea r15, sym.Xenos64.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x30]
lea r8, [0x1400d2e00]
mov edx, 0x261
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x1f5
mov rcx, r14
call qword [rax + 0x30]
mov esi, edi
lea r12, [0x1400f5e50]
mov ebx, 0xffffffff
movabs r13, 0x400000003
nop dword [rax]
nop word [rax + rax]
lea ecx, [rsi*8]
mov qword [rbp + 0x30], r13
shl rcx, 0x20
add rcx, rbx
mov qword [rbp + 0x38], rcx
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r12
lea r8, [rbp + 0x30]
mov edx, 0x123
mov rcx, r14
call qword [rax + 0x30]
inc esi
add r12, 0x10
cmp esi, 0xf
jl 0x140040fa0
mov rbx, qword [rbp + 0x40]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x30], rax
mov r13, qword [rsp + 0x50]
mov rax, qword [r13 + 0x68]
test rax, rax
je 0x140041002
mov rcx, qword [rax]
jmp 0x140041005
mov rcx, rdi
mov qword [rbp - 0x40], 0xffffffffffff0001
mov qword [rbp - 0x38], 0xff
movabs rsi, 0xffffffff00000003
mov qword [rbp - 0x30], rsi
mov r12d, 0xffffffff
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov dword [rbp - 0x50], 2
mov qword [rbp - 0x48], 8
mov qword [rbp - 0x20], rcx
lea rax, [rbp - 0x50]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 8]
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14001b7f8
nop
mov rax, qword [r13 + 0x58]
test rax, rax
je 0x14004107d
mov rax, qword [rax]
jmp 0x140041080
mov rax, rdi
mov qword [rsp + 0x68], 0xffffffffffff0001
mov qword [rsp + 0x70], 0xff
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x70], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x60], 8
mov qword [rbp - 0x78], rax
mov r9d, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rbp + 0x30]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14004111d
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004110c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041830
call fcn.14006a754
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1400411f9
mov rax, qword [rsp + 0x38]
mov qword [rbp + 0x30], rax
cmp r8, rax
je 0x140041197
lea rsi, [r8 + 0x50]
nop dword [rax]
mov rcx, qword [rsi - 0x10]
test rcx, rcx
je 0x140041184
mov rdx, qword [rsi]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140041174
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140041836
mov rcx, r8
call fcn.14006a754
mov qword [rsi - 0x10], rdi
mov qword [rsi - 8], rdi
mov qword [rsi], rdi
add rsi, 0x58
lea rax, [rsi - 0x50]
cmp rax, qword [rbp + 0x30]
jne 0x140041140
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, r8
movabs rax, 0x2e8ba2e8ba2e8ba3
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x58
mov rax, r8
cmp rdx, 0x1000
jb 0x1400411e3
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140041836
mov rcx, r8
call fcn.14006a754
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
lea r9, [0x140017bc4]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x50]
call fcn.14006acbc
mov dword [rsp + 0x20], 8
mov r8d, 2
mov rdx, rbx
mov rcx, r13
call fcn.140042b20
mov esi, edi
lea rbx, [0x1400f5e50]
movabs r13, 0x400000003
nop
lea ecx, [rsi*8]
mov qword [rbp + 0x20], r13
shl rcx, 0x20
add rcx, r12
mov qword [rbp + 0x28], rcx
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
mov r8, rbx
mov edx, 0x123
mov rcx, r14
call qword [rax + 0x30]
inc esi
add rbx, 0x10
cmp esi, 0xf
jl 0x140041240
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x1c9
mov rcx, r14
call qword [rax + 0x30]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], 0x78
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
lea r8, [0x1400d2e00]
mov edx, 2
mov rcx, r14
call qword [rax + 0x30]
mov eax, 0x25ff
mov word [rbp + 0x30], ax
mov rax, qword [r14]
mov r8d, 2
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [rax + 0x18]
mov dword [rbp + 0x30], edi
mov rax, qword [r14]
mov r8d, 4
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [rax + 0x18]
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x30], rax
mov rax, qword [r14]
mov r8d, 8
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [rax + 0x18]
mov rbx, qword [rbp + 0x40]
mov r13, qword [rsp + 0x50]
jmp 0x1400416d4
mov rsi, qword [r14]
xor edx, edx
mov r8d, 0x2c8
lea rcx, [rbp + 0x54]
call fcn.140089280
mov dword [rbp + 0x50], 0x100001
mov rax, qword [rsi]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x50]
mov rdx, qword [rsi + 0x10]
call qword [rax + 0x50]
mov esi, eax
test eax, eax
jns 0x14004138c
mov rdi, qword [r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
je 0x140041745
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140041745
lea r14, [rbx + 0xa8]
mov rax, qword [r14]
lea r15, sym.Xenos64.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x1f4
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x1f5
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x50], rax
mov rax, qword [r13 + 0x68]
test rax, rax
je 0x1400413f0
mov rax, qword [rax]
jmp 0x1400413f3
mov rax, rdi
mov qword [rbp - 0x40], 0xffffffffffff0001
mov qword [rbp - 0x38], 0xff
movabs rsi, 0xffffffff00000003
mov qword [rbp - 0x30], rsi
mov r12d, 0xffffffff
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x18], rdi
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov dword [rbp - 0x50], 2
mov qword [rbp - 0x48], 8
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x50]
mov qword [rbp + 0x20], rax
lea rax, [rbp + 8]
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14001b7f8
nop
mov rax, qword [r13 + 0x58]
test rax, rax
je 0x14004146b
mov rax, qword [rax]
jmp 0x14004146e
mov rax, rdi
mov qword [rsp + 0x68], 0xffffffffffff0001
mov qword [rsp + 0x70], 0xff
mov qword [rsp + 0x78], rsi
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x70], rdi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov dword [rsp + 0x58], 2
mov qword [rsp + 0x60], 8
mov qword [rbp - 0x78], rax
mov r9d, 1
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [rsp + 0x50]
nop
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14004150c
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400414fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004183c
call fcn.14006a754
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rdi
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x1400415e8
mov r12, qword [rsp + 0x38]
cmp r8, r12
je 0x140041586
lea rsi, [r8 + 0x50]
nop dword [rax + rax]
mov rcx, qword [rsi - 0x10]
test rcx, rcx
je 0x140041574
mov rdx, qword [rsi]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140041564
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004182a
mov rcx, r8
call fcn.14006a754
mov qword [rsi - 0x10], rdi
mov qword [rsi - 8], rdi
mov qword [rsi], rdi
add rsi, 0x58
lea rax, [rsi - 0x50]
cmp rax, r12
jne 0x140041530
mov r8, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
sub rcx, r8
movabs rax, 0x2e8ba2e8ba2e8ba3
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x58
mov rax, r8
cmp rdx, 0x1000
jb 0x1400415d2
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14004182a
mov rcx, r8
call fcn.14006a754
mov qword [rsp + 0x30], rdi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
lea r9, [0x140017bc4]
mov edx, 0x58
lea r8d, [rdx - 0x57]
lea rcx, [rbp - 0x50]
call fcn.14006acbc
movabs rsi, 0xffffffff00000004
mov qword [rbp + 0x20], rsi
mov qword [rbp + 0x28], 4
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x20]
lea r8, [0x1400d2d00]
mov edx, 2
mov rcx, r14
call qword [rax + 0x30]
mov dword [rsp + 0x20], edi
xor r8d, r8d
mov rdx, rbx
mov rcx, r13
call fcn.140042b20
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x1c9
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x1c7
mov rcx, r14
call qword [rax + 0x30]
mov qword [rbp + 0x20], rsi
movsxd rax, dword [rbp + 0x108]
mov qword [rbp + 0x28], rax
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
lea r8, [rbp + 0x20]
mov edx, 0x1f3
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
mov r9, r15
mov r8, r15
mov edx, 0x21c
mov rcx, r14
call qword [rax + 0x30]
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 8]
mov r8, rax
mov r9d, dword [r14 + 0x60]
sub r9, qword [r14 + 0x48]
add r9, qword [r14 + 0x58]
mov rax, qword [r13 + 0x58]
test rax, rax
jne 0x14004177d
mov esi, 0xc00000a0
mov rdi, qword [rsp + 0x48]
mov rdi, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rdi + 8], eax
je 0x14004171b
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test esi, esi
js 0x140041745
mov edx, 0x4e20
mov rcx, qword [r13 + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9, qword [rbp + 0x18]
mov edx, 8
mov r8d, edx
lea rcx, [r13 + 0x68]
call fcn.14003fe40
mov esi, eax
test rbx, rbx
je 0x140041758
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov eax, esi
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.14006a730
add rsp, 0xaa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rcx, qword [rax + 0x18]
mov rdx, qword [rax]
mov r14, qword [rbp + 0x10]
add rdx, r14
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
call qword [rax + 0x20]
mov esi, eax
test eax, eax
js 0x1400416fe
mov rax, qword [r13]
mov rcx, qword [rax + 0x10]
mov rax, qword [r13 + 0x58]
cmp byte [rcx + 0x15], 0
je 0x1400417f0
test rax, rax
je 0x1400417c2
mov rdi, qword [rax]
lea eax, [r14 + rdi]
mov dword [rbp + 0x108], eax
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rdi]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x50]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x60]
mov esi, eax
jmp 0x140041703
test rax, rax
je 0x1400417f8
mov rdi, qword [rax]
lea rax, [rdi + r14]
mov qword [rbp + 0x418], rax
mov rdi, qword [rsp + 0x48]
mov rdx, qword [rdi]
mov rax, qword [rdx]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
lea r8, [rbp + 0x320]
mov rdx, qword [rdx + 0x10]
call qword [rax + 0x68]
mov esi, eax
jmp 0x140041703
call fcn.140097d64
nop
call fcn.140097d64
nop
call fcn.140097d64
nop
call fcn.140097d64
int3