Function at 0x1400c3490
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r13
lea rbp, [rsp - 0x2008]
mov eax, 0x2108
call fcn.140065cc0
sub rsp, rax
mov rax, qword [0x14016bb40]
xor rax, rsp
mov qword [rbp + 0x1fe0], rax
mov rdi, qword [rbp + 0x2030]
mov rsi, qword [rbp + 0x2038]
mov r13, qword [rbp + 0x2040]
cmp dword [rdi + 0x1c], 0
jne 0x1400c34ed
mov rcx, rdi
call fcn.1400c3080
mov rax, qword [rdi + 8]
cmp qword [rax + 8], 0
jne 0x1400c350a
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1400c3960
mov qword [rsp + 0x20f0], r15
xor r15d, r15d
mov qword [0x140178478], r15
mov qword [0x140178480], r15
test r13, r13
jne 0x1400c35af
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rsi, rax
jne 0x1400c3564
lea rcx, [rbp + 0x1b10]
xor edx, edx
mov r8d, 0x4d0
call fcn.140062cd0
lea rcx, [rbp + 0x1b10]
mov dword [rbp + 0x1b40], 0x10000b
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
jmp 0x1400c35c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rcx, [rbp + 0x1b10]
xor edx, edx
mov r8d, 0x4d0
call fcn.140062cd0
lea rdx, [rbp + 0x1b10]
mov rcx, rsi
mov dword [rbp + 0x1b40], 0x10000b
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x1400c35c4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x1400c3958
lea rcx, [rbp + 0x1b10]
mov rdx, r13
mov r8d, 0x4d0
call fcn.14005e960
lea rcx, [rbp + 0x17b0]
xor edx, edx
mov r8d, 0x108
mov qword [rsp + 0x2100], r12
call fcn.140062cd0
mov rax, qword [rbp + 0x1ba8]
mov r11, qword [rbp + 0x1c08]
mov ecx, 0x420
mov qword [rbp + 0x17d0], rax
mov qword [rbp + 0x17e0], rax
mov dword [rbp + 0x17bc], 3
mov dword [rbp + 0x17dc], 3
mov qword [rbp + 0x17b0], r11
mov dword [rbp + 0x17ec], 3
call fcn.14006194c
mov r12, rax
test rax, rax
je 0x1400c393d
xor edx, edx
mov r8d, 0x420
mov rcx, rax
mov qword [rsp + 0x2148], rbx
mov qword [rsp + 0x20f8], r14
call fcn.140062cd0
xor eax, eax
mov dword [r12], 0x20
mov dword [r12 + 0x18], 0x400
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x18c0]
xor edx, edx
mov r8d, 0x248
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.140062cd0
mov r10, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x40], r15
mov dword [rbp + 0x18c0], 0x248
mov rax, qword [r10 + 0x38]
mov qword [rsp + 0x38], rax
mov rax, qword [r10 + 0x28]
lea rbx, [0x1400c2eb0]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b10]
lea r9, [rbp + 0x17b0]
mov r8, rsi
mov ecx, 0x8664
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov r14d, r15d
call qword [r10 + 0x70]
test eax, eax
je 0x1400c3905
nop
mov rcx, qword [rbp + 0x17b0]
mov byte [rbp - 0x78], r15b
mov byte [rbp + 0x388], r15b
mov byte [rbp + 0x788], r15b
mov qword [rbp + 0xb88], r15
mov byte [rbp + 0xb98], r15b
mov qword [rbp - 0x80], rcx
mov qword [rbp + 0xb90], r15
mov byte [rbp + 0x13b0], r15b
mov byte [rbp + 0xfa8], r15b
cmp rcx, qword [rbp + 0x17c0]
je 0x1400c3aba
test rcx, rcx
je 0x1400c3891
mov rax, qword [rdi + 8]
mov rdx, rcx
mov rcx, qword [rdi + 0x10]
lea r8, [rbp + 0xb88]
mov r9, r12
call qword [rax + 0x50]
test eax, eax
je 0x1400c37c4
lea r8, [r12 + 0x1c]
lea rcx, [rbp - 0x78]
mov edx, 0x400
call fcn.1400620a8
mov r11, qword [rdi + 8]
lea rdx, [rbp + 0x388]
lea rcx, [r12 + 0x1c]
mov r9d, 0x1000
mov r8d, 0x400
call qword [r11 + 0x78]
mov r11, qword [rdi + 8]
lea rdx, [rbp + 0x788]
lea rcx, [r12 + 0x1c]
xor r9d, r9d
mov r8d, 0x400
call qword [r11 + 0x78]
jmp 0x1400c37e4
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, [0x14011fcf8]
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
mov rax, qword [rdi + 8]
mov r10, qword [rax + 0x30]
test r10, r10
je 0x1400c3851
mov rdx, qword [rbp + 0x17b0]
mov rcx, qword [rdi + 0x10]
lea r9, [rsp + 0x50]
lea r8, [rbp + 0xb90]
call r10
test eax, eax
je 0x1400c3831
mov eax, dword [rsp + 0x60]
mov r8, qword [rsp + 0x68]
lea rcx, [rbp + 0xb98]
mov edx, 0x400
mov dword [rbp + 0xb94], eax
call fcn.1400620a8
jmp 0x1400c3851
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, [0x14011fd10]
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
mov rcx, qword [rdi + 8]
cmp qword [rcx + 0x40], r15
jne 0x1400c397c
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, [0x14011fd60]
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
lea rbx, [0x1400c2eb0]
mov rax, qword [rdi]
mov edx, 1
test r14d, r14d
lea r8, [rbp - 0x80]
mov rcx, rdi
cmove edx, r15d
call qword [rax + 0x18]
cmp qword [rbp + 0x17c0], r15
je 0x1400c3a9b
mov r10, qword [rdi + 8]
mov rdx, qword [rdi + 0x10]
mov qword [rsp + 0x40], r15
mov rax, qword [r10 + 0x38]
lea r9, [rbp + 0x17b0]
mov r8, rsi
mov qword [rsp + 0x38], rax
mov rax, qword [r10 + 0x28]
mov ecx, 0x8664
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x1b10]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
inc r14d
call qword [r10 + 0x70]
test eax, eax
jne 0x1400c3700
mov rbx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9, qword [rbp + 0x17b0]
lea rdx, [0x14011fcc8]
mov r8d, eax
mov rcx, rdi
call qword [rbx + 0x20]
mov rcx, r12
call fcn.14006190c
mov r14, qword [rsp + 0x20f8]
mov rbx, qword [rsp + 0x2148]
mov r12, qword [rsp + 0x2100]
test r13, r13
jne 0x1400c3953
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov r15, qword [rsp + 0x20f0]
mov rcx, qword [rbp + 0x1fe0]
xor rcx, rsp
call fcn.14005e0b0
add rsp, 0x2108
pop r13
pop rdi
pop rsi
pop rbp
ret
mov r8, qword [rbp + 0x17b0]
mov rdx, qword [rdi + 0x10]
lea r9, [rbp + 0x18c0]
call fcn.14003ff00
test eax, eax
je 0x1400c386a
movsxd rax, dword [rbp + 0x18e0]
cmp eax, 8
ja case.default.0x1400c39bc
lea rbx, [0x140000000]
mov ecx, dword [rbx + rax*4 + 0xc3ad8]
add rcx, rbx
jmp rcx
lea rax, [0x14011fd28]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011d5a4]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011883c]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011892c]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011fd38]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011fd48]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011898c]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x140118a3c]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
lea rax, [0x14011fd58]
mov qword [rbp + 0xfa0], rax
jmp 0x1400c3a58
mov qword [rbp + 0xfa0], r15
lea r8, [rbp + 0x18e4]
lea rcx, [rbp + 0xfa8]
mov edx, 0x400
call fcn.1400620a8
mov r11, qword [rbp + 0x18c8]
lea r8, [rbp + 0x1a04]
lea rcx, [rbp + 0x13b0]
mov edx, 0x400
mov qword [rbp + 0x13a8], r11
call fcn.1400620a8
jmp 0x1400c388a
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 0x1400c3925
mov rax, qword [rdi]
mov r9, rcx
lea rdx, str.StackWalk64_Endless_Callstack_
xor r8d, r8d
mov rcx, rdi
call qword [rax + 0x20]
jmp 0x1400c3925