Function at 0x14001c040
Capabilities:
Resume thread
Suspend thread

Disassembly:
push rbp
push rsi
push rdi
push r12
lea rbp, [rsp - 0x2008]
mov eax, 0x2108
call fcn.1401b79c0
sub rsp, rax
mov rax, qword [0x1402ac7a8]
xor rax, rsp
mov qword [rbp + 0x1fe0], rax
cmp dword [rcx + 0x1c], 0
mov r12, r8
mov rsi, rdx
mov rdi, rcx
jne 0x14001c080
call fcn.14001ba90
mov rax, qword [rdi + 8]
cmp qword [rax + 8], 0
jne 0x14001c09d
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14001c676
mov qword [rsp + 0x2100], r13
xor r13d, r13d
mov qword [0x1403b1418], r13
mov qword [0x1403b1628], r13
test r12, r12
jne 0x14001c149
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rsi, rax
jne 0x14001c0fa
xor edx, edx
lea rcx, [rbp + 0x1b10]
mov r8d, 0x4d0
call fcn.1401bcf00
lea rcx, [rbp + 0x1b10]
mov dword [rbp + 0x1b40], 0x10000b
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
jmp 0x14001c1d9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
lea rcx, [rbp + 0x1b10]
mov r8d, 0x4d0
call fcn.1401bcf00
lea rdx, [rbp + 0x1b10]
mov dword [rbp + 0x1b40], 0x10000b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x14001c1d9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x14001c66e
mov rcx, r12
lea rax, [rbp + 0x1b10]
mov edx, 9
nop dword [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x14001c160
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x30], xmm1
movups xmmword [rax + 0x40], xmm0
xor edx, edx
mov qword [rsp + 0x20f8], r14
mov r8d, 0x108
lea rcx, [rbp + 0x17b0]
call fcn.1401bcf00
mov rax, qword [rbp + 0x1c08]
mov ecx, 0x420
mov qword [rbp + 0x17b0], rax
mov rax, qword [rbp + 0x1ba8]
mov qword [rbp + 0x17d0], rax
mov qword [rbp + 0x17e0], rax
mov dword [rbp + 0x17bc], 3
mov dword [rbp + 0x17dc], 3
mov dword [rbp + 0x17ec], 3
call fcn.1401c996c
mov r14, rax
test rax, rax
je 0x14001c653
mov qword [rsp + 0x2148], rbx
xor edx, edx
mov r8d, 0x420
mov qword [rsp + 0x20f0], r15
mov rcx, rax
call fcn.1401bcf00
xor eax, eax
mov dword [r14], 0x20
mov dword [r14 + 0x18], 0x400
lea rcx, [rbp + 0x18c4]
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x244
mov dword [rsp + 0x50], 0x28
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
call fcn.1401bcf00
mov r10, qword [rdi + 8]
lea rbx, [0x14001c6f0]
mov rdx, qword [rdi + 0x10]
lea r9, [rbp + 0x17b0]
mov qword [rsp + 0x40], r13
mov r8, rsi
mov dword [rbp + 0x18c0], 0x248
mov ecx, 0x8664
mov rax, qword [r10 + 0x38]
mov r15d, r13d
mov qword [rsp + 0x38], rax
mov rax, qword [r10 + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [r10 + 0x78]
test eax, eax
je 0x14001c61b
mov rcx, qword [rbp + 0x17b0]
mov qword [rbp - 0x80], rcx
mov byte [rbp - 0x78], r13b
mov byte [rbp + 0x388], r13b
mov byte [rbp + 0x788], r13b
mov qword [rbp + 0xb88], r13
mov qword [rbp + 0xb90], r13
mov byte [rbp + 0xb98], r13b
mov byte [rbp + 0x13b0], r13b
mov byte [rbp + 0xfa8], r13b
cmp rcx, qword [rbp + 0x17c0]
je 0x14001c6ae
test rcx, rcx
je 0x14001c5aa
mov rax, qword [rdi + 8]
lea r8, [rbp + 0xb88]
mov rdx, rcx
mov r9, r14
mov rcx, qword [rdi + 0x10]
call qword [rax + 0x50]
test eax, eax
je 0x14001c3d6
lea r8, [r14 + 0x1c]
mov edx, 0x400
lea rcx, [rbp - 0x78]
call fcn.1401c973c
mov rax, qword [rdi + 8]
lea rdx, [rbp + 0x388]
mov r9d, 0x1000
lea rcx, [r14 + 0x1c]
mov r8d, 0x400
call qword [rax + 0x80]
mov rax, qword [rdi + 8]
lea rdx, [rbp + 0x788]
xor r9d, r9d
lea rcx, [r14 + 0x1c]
mov r8d, 0x400
call qword [rax + 0x80]
jmp 0x14001c3f6
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, str.SymGetSymFromAddr64
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
mov rax, qword [rdi + 8]
mov r10, qword [rax + 0x30]
test r10, r10
je 0x14001c463
mov rdx, qword [rbp + 0x17b0]
lea r9, [rsp + 0x50]
mov rcx, qword [rdi + 0x10]
lea r8, [rbp + 0xb90]
call r10
test eax, eax
je 0x14001c443
mov eax, dword [rsp + 0x60]
lea rcx, [rbp + 0xb98]
mov r8, qword [rsp + 0x68]
mov edx, 0x400
mov dword [rbp + 0xb94], eax
call fcn.1401c973c
jmp 0x14001c463
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, str.SymGetLineFromAddr64
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
mov r8, qword [rbp + 0x17b0]
lea r9, [rbp + 0x18c0]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.14001b7e0
test eax, eax
je 0x14001c583
movsxd rax, dword [rbp + 0x18e0]
cmp eax, 8
ja case.default.0x14001c4a7
lea rbx, [0x140000000]
mov ecx, dword [rbx + rax*4 + 0x1c6cc]
add rcx, rbx
jmp rcx
lea rax, str._nosymbols_
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, str.COFF
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, [0x140269c8c]
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, [0x140269c90]
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, str._exported_
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, str._deferred_
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, [0x140269cb4]
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, [0x140269cc0]
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
lea rax, str.Virtual
mov qword [rbp + 0xfa0], rax
jmp 0x14001c543
mov qword [rbp + 0xfa0], r13
lea r8, [rbp + 0x18e4]
mov edx, 0x400
lea rcx, [rbp + 0xfa8]
call fcn.1401c973c
mov rax, qword [rbp + 0x18c8]
lea r8, [rbp + 0x1a04]
mov edx, 0x400
mov qword [rbp + 0x13a8], rax
lea rcx, [rbp + 0x13b0]
call fcn.1401c973c
jmp 0x14001c5a3
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, str.SymGetModuleInfo64
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
lea rbx, [0x14001c6f0]
mov rax, qword [rdi]
lea r8, [rbp - 0x80]
mov edx, r13d
test r15d, r15d
mov rcx, rdi
setne dl
call qword [rax + 0x18]
cmp qword [rbp + 0x17c0], r13
je 0x14001c692
mov r10, qword [rdi + 8]
lea r9, [rbp + 0x17b0]
mov rdx, qword [rdi + 0x10]
mov r8, rsi
mov qword [rsp + 0x40], r13
mov ecx, 0x8664
inc r15d
mov rax, qword [r10 + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [r10 + 0x28]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [r10 + 0x78]
test eax, eax
jne 0x14001c311
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, str.StackWalk64
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
mov rcx, r14
call fcn.1401bf0a8
mov r15, qword [rsp + 0x20f0]
mov rbx, qword [rsp + 0x2148]
mov r14, qword [rsp + 0x20f8]
test r12, r12
jne 0x14001c669
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov r13, qword [rsp + 0x2100]
mov rcx, qword [rbp + 0x1fe0]
xor rcx, rsp
call fcn.1401b6f40
add rsp, 0x2108
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rdi]
lea r8, [rbp - 0x80]
mov edx, 2
mov rcx, rdi
call qword [rax + 0x18]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x14001c63b
mov rax, qword [rdi]
lea rdx, str.StackWalk64_Endless_Callstack_
mov r9, rcx
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x20]
jmp 0x14001c63b