Function at 0x1400604b0
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 [0x1400af040]
xor rax, rsp
mov qword [rbp + 0x990], rax
mov qword [rbp + 0x28], r9
mov rdi, r8
mov qword [rbp + 0x20], r8
mov rbx, rdx
mov r15, rcx
mov qword [rsp + 0x38], rcx
mov rsi, qword [rbp + 0xa10]
mov qword [rsp + 0x30], rsi
xor r14d, r14d
xor edx, edx
mov r8d, 0x2cc
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memset
xor edx, edx
mov r8d, 0x670
lea rcx, [rbp + 0x320]
call sub.VCRUNTIME140.dll_memset
cmp qword [r15 + 0x40], r14
jne 0x140060537
mov eax, 0xc0000225
jmp 0x140060f00
mov r8, rdi
mov rdx, rbx
mov rcx, r15
call fcn.140061e70
test eax, eax
js 0x140060f00
mov rcx, qword [r15 + 0x40]
test rcx, rcx
je 0x14006055c
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rsi]
call fcn.14007bed0
test al, al
jne 0x14006057c
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x140060f00
mov qword [rbp + 0x48], r14
mov rax, qword [r15]
mov rcx, qword [rax + 0x10]
mov edx, r14d
cmp byte [rcx + 0x15], dl
sete dl
lea rcx, [rbp + 0x48]
call fcn.140049700
nop
mov rax, qword [r15]
mov rcx, qword [rax + 0x10]
mov rbx, qword [rbp + 0x48]
cmp byte [rcx + 0x15], 0
jne 0x140060a79
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400f2464], eax
jle 0x1400606c6
lea rcx, [0x1400f2464]
call fcn.140084874
cmp dword [0x1400f2464], 0xffffffff
jne 0x1400606c6
movaps xmm0, xmmword [0x140094680]
movaps xmmword [0x1400f2470], xmm0
movaps xmm1, xmmword [0x1400946b0]
movaps xmmword [0x1400f2480], xmm1
movaps xmm0, xmmword [0x140094690]
movaps xmmword [0x1400f2490], xmm0
movaps xmm1, xmmword [0x1400946a0]
movaps xmmword [0x1400f24a0], xmm1
movaps xmm0, xmmword [0x1400946e0]
movaps xmmword [0x1400f24b0], xmm0
movaps xmm1, xmmword [0x1400946f0]
movaps xmmword [0x1400f24c0], xmm1
movaps xmm0, xmmword [0x140094700]
movaps xmmword [0x1400f24d0], xmm0
movaps xmm1, xmmword [0x140094710]
movaps xmmword [0x1400f24e0], xmm1
movaps xmm0, xmmword [0x140094720]
movaps xmmword [0x1400f24f0], xmm0
movaps xmm1, xmmword [0x140094730]
movaps xmmword [0x1400f2500], xmm1
movaps xmm0, xmmword [0x140094740]
movaps xmmword [0x1400f2510], xmm0
movaps xmm1, xmmword [0x140094750]
movaps xmmword [0x1400f2520], xmm1
movaps xmm0, xmmword [0x140094760]
movaps xmmword [0x1400f2530], xmm0
movaps xmm1, xmmword [0x140094770]
movaps xmmword [0x1400f2540], xmm1
movaps xmm0, xmmword [0x1400946d0]
movaps xmmword [0x1400f2550], xmm0
lea rcx, [0x1400f2464]
call fcn.140084808
mov rdx, qword [rsi]
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 edi, eax
test eax, eax
js 0x140060a9e
lea rdi, [rbx + 0xa8]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x78
mov rax, qword [rdi]
lea rsi, sym.example_win32_directx11.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
lea r8, [0x1400946c0]
mov edx, 0x261
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1f5
mov rcx, rdi
call qword [rax + 0x30]
mov r12d, r14d
lea r13, [0x1400f2470]
mov ebx, 0xffffffff
movabs r15, 0x400000003
nop dword [rax]
nop word [rax + rax]
lea ecx, [r12*8]
mov qword [rbp + 0x30], r15
shl rcx, 0x20
add rcx, rbx
mov qword [rbp + 0x38], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, r13
lea r8, [rbp + 0x30]
mov edx, 0x123
mov rcx, rdi
call qword [rax + 0x30]
inc r12d
add r13, 0x10
cmp r12d, 0xf
jl 0x140060780
mov rbx, qword [rbp + 0x48]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x30], rax
mov r15, qword [rsp + 0x38]
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rcx, qword [r15 + rax*8 + 0x78]
test rcx, rcx
je 0x1400607f0
mov rax, qword [rcx]
jmp 0x1400607f3
mov rax, r14
mov qword [rbp - 0x30], 0xffffffffffff0001
mov qword [rbp - 0x28], 0xff
movabs r12, 0xffffffff00000003
mov qword [rbp - 0x20], r12
mov r13d, 0xffffffff
mov qword [rbp - 0x18], r13
mov qword [rbp - 8], r14
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov dword [rbp - 0x40], 2
mov qword [rbp - 0x38], 8
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x40]
lea rax, [rbp + 0x18]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rbp + 0x40], rax
mov qword [rsp + 0x58], rcx
lea r9, [rbp + 0x40]
lea r8, [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140050e00
nop
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rax, qword [r15 + rax*8 + 0x58]
test rax, rax
je 0x14006088c
mov rax, qword [rax]
jmp 0x14006088f
mov rax, r14
mov qword [rsp + 0x70], 0xffffffffffff0001
mov qword [rsp + 0x78], 0xff
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x68], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x68], 8
mov qword [rbp - 0x70], rax
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rbp + 0x30]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14006092e
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006091d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006091d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.140050ce0
nop
lea r9, [0x1400496a0]
mov edx, 0x58
mov r8d, 1
lea rcx, [rbp - 0x40]
call fcn.14008511c
mov dword [rsp + 0x20], r14d
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.1400620f0
mov r12d, r14d
lea rbx, [0x1400f2470]
movabs r15, 0x400000003
nop
lea ecx, [r12*8]
mov qword [rbp + 0x30], r15
shl rcx, 0x20
add rcx, r13
mov qword [rbp + 0x38], rcx
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
mov r8, rbx
mov edx, 0x123
mov rcx, rdi
call qword [rax + 0x30]
inc r12d
add rbx, 0x10
cmp r12d, 0xf
jl 0x140060980
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1c9
mov rcx, rdi
call qword [rax + 0x30]
movabs rax, 0xffffffff00000004
mov qword [rbp + 0x30], rax
mov qword [rbp + 0x38], 0x78
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
lea r8, [0x1400946c0]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
mov eax, 0x25ff
mov word [rbp + 0x40], ax
mov rax, qword [rdi]
mov r8d, 2
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [rax + 0x18]
mov dword [rbp + 0x40], r14d
mov rax, qword [rdi]
mov r8d, 4
lea rdx, [rbp + 0x40]
mov rcx, rdi
call qword [rax + 0x18]
mov rax, qword [rbp + 0x418]
mov qword [rbp + 0x30], rax
mov rax, qword [rdi]
mov r8d, 8
lea rdx, [rbp + 0x30]
mov rcx, rdi
call qword [rax + 0x18]
mov rbx, qword [rbp + 0x48]
mov r15, qword [rsp + 0x38]
jmp 0x140060e3d
mov rdx, qword [rsi]
mov dword [rbp + 0x50], 0x100001
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 + 0x50]
mov edi, eax
test eax, eax
jns 0x140060abf
mov rsi, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x140060eeb
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140060eeb
lea rdi, [rbx + 0xa8]
mov rax, qword [rdi]
lea rsi, sym.example_win32_directx11.exe_struct_asmjit::Operand_const_asmjit::noOperand
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1f4
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1f5
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rbx]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x38], rax
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rax, qword [r15 + rax*8 + 0x78]
test rax, rax
je 0x140060b2e
mov rax, qword [rax]
jmp 0x140060b31
mov rax, r14
mov qword [rbp - 0x30], 0xffffffffffff0001
mov qword [rbp - 0x28], 0xff
movabs r12, 0xffffffff00000003
mov qword [rbp - 0x20], r12
mov r13d, 0xffffffff
mov qword [rbp - 0x18], r13
mov qword [rbp - 8], r14
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov dword [rbp - 0x40], 2
mov qword [rbp - 0x38], 8
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x40]
lea rax, [rbp + 0x18]
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
mov qword [rbp + 0x30], rax
mov qword [rsp + 0x58], rcx
lea r9, [rbp + 0x30]
lea r8, [rsp + 0x58]
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.140050e00
nop
movsxd rax, dword [r15 + 0x9c]
add rax, rax
mov rax, qword [r15 + rax*8 + 0x58]
test rax, rax
je 0x140060bca
mov rax, qword [rax]
jmp 0x140060bcd
mov rax, r14
mov qword [rsp + 0x70], 0xffffffffffff0001
mov qword [rsp + 0x78], 0xff
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x68], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov dword [rsp + 0x60], 2
mov qword [rsp + 0x68], 8
mov qword [rbp - 0x70], rax
mov r9d, 1
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rsp + 0x38]
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140060c6d
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140060c5c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060c5c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140084b70
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r14
mov r8, qword [rsp + 0x40]
test r8, r8
je 0x140060d4e
mov r12, qword [rsp + 0x48]
cmp r8, r12
je 0x140060ce9
lea rdi, [r8 + 0x50]
nop dword [rax]
mov rcx, qword [rdi - 0x10]
test rcx, rcx
je 0x140060cd0
mov rdx, qword [rdi]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140060cc0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140060d31
mov rcx, r8
call fcn.140084b70
mov qword [rdi - 0x10], r14
mov qword [rdi - 8], r14
mov qword [rdi], r14
add rdi, 0x58
lea rax, [rdi - 0x50]
cmp rax, r12
jne 0x140060c90
mov r8, qword [rsp + 0x40]
lea rdi, [rbx + 0xa8]
mov rcx, qword [rsp + 0x50]
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 0x140060d38
add rdx, 0x27
mov r8, qword [r8 - 8]
sub rax, r8
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140060d38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r8
call fcn.140084b70
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r14
lea r9, [0x1400496a0]
mov edx, 0x58
mov r8d, 1
lea rcx, [rbp - 0x40]
call fcn.14008511c
movabs r12, 0xffffffff00000004
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 4
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x30]
lea r8, [0x1400945c0]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x30]
mov dword [rsp + 0x20], r14d
xor r8d, r8d
mov rdx, rbx
mov rcx, r15
call fcn.1400620f0
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1c9
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x1c7
mov rcx, rdi
call qword [rax + 0x30]
mov qword [rbp + 0x30], r12
movsxd rax, dword [rbp + 0x108]
mov qword [rbp + 0x38], rax
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
lea r8, [rbp + 0x30]
mov edx, 0x1f3
mov rcx, rdi
call qword [rax + 0x30]
mov rax, qword [rdi]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov r9, rsi
mov r8, rsi
mov edx, 0x21c
mov rcx, rdi
call qword [rax + 0x30]
movsxd rsi, dword [r15 + 0x9c]
add rsi, rsi
mov rax, qword [rbx + 0xa8]
lea rcx, [rbx + 0xa8]
call qword [rax + 8]
mov r8, rax
mov r9d, dword [rbx + 0x108]
sub r9, qword [rbx + 0xf0]
add r9, qword [rbx + 0x100]
mov rax, qword [r15 + rsi*8 + 0x58]
test rax, rax
jne 0x140060f23
mov edi, 0xc00000a0
mov rsi, qword [rsp + 0x30]
mov rsi, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsi + 8], eax
je 0x140060ea0
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
test edi, edi
js 0x140060ed8
mov edx, 0x4e20
mov rcx, qword [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movsxd rcx, dword [r15 + 0x9c]
shl rcx, 4
add rcx, 0x78
add rcx, r15
mov r9, qword [rbp + 0x28]
xor edx, edx
mov r8d, 8
call fcn.14005f6c0
mov edi, eax
mov ecx, 1
sub ecx, dword [r15 + 0x9c]
mov dword [r15 + 0x9c], ecx
test rbx, rbx
je 0x140060efe
mov r8, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [r8]
mov eax, edi
mov rcx, qword [rbp + 0x990]
xor rcx, rsp
call fcn.140084e30
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 rsi, qword [rbp + 0x20]
add rdx, rsi
mov rax, qword [rcx + 0x70]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
mov qword [rsp + 0x20], r14
call qword [rax + 0x20]
mov edi, eax
test eax, eax
js 0x140060e83
mov rax, qword [r15]
movsxd rcx, dword [r15 + 0x9c]
add rcx, rcx
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x15], 0
mov rax, qword [r15 + rcx*8 + 0x58]
je 0x140060fa0
test rax, rax
je 0x140060f72
mov r14, qword [rax]
lea eax, [rsi + r14]
mov dword [rbp + 0x108], eax
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsi]
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 edi, eax
jmp 0x140060e88
test rax, rax
je 0x140060fa8
mov r14, qword [rax]
lea rax, [r14 + rsi]
mov qword [rbp + 0x418], rax
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsi]
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 edi, eax
jmp 0x140060e88