Function at 0x180265d40
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x25d8
call fcn.180269ca0
sub rsp, rax
mov rax, qword [0x1803d9938]
xor rax, rsp
mov qword [rsp + 0x25c0], rax
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov dword [rsp + 0x60], 0
mov rax, qword [rsp + 0x25f0]
cmp dword [rax + 0x1c], 0
jne 0x180265da6
mov rcx, qword [rsp + 0x25f0]
call fcn.180265710
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
cmp qword [rax + 0x4e0], 0
jne 0x180265dce
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x1802666c8
mov rax, qword [rsp + 0x2608]
mov qword [0x18041fcf0], rax
mov rax, qword [rsp + 0x2610]
mov qword [0x18041fcf8], rax
cmp qword [rsp + 0x2600], 0
jne 0x180265ee6
mov rcx, qword [rsp + 0x25f8]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
mov dword [rsp + 0x70], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [rsp + 0x70]
cmp ecx, eax
jne 0x180265e87
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
cmp dword [rax + 0x40], 0
je 0x180265e51
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
lea rcx, [rsp + 0x1a60]
mov rdi, rcx
lea rsi, [rax + 0x10]
mov ecx, 0x4d0
rep movsb byte [rdi], byte [rsi]
jmp 0x180265e85
mov r8d, 0x4d0
xor edx, edx
lea rcx, [rsp + 0x1a60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x1a90], 0x10000b
lea rcx, [rsp + 0x1a60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
xor eax, eax
test eax, eax
jne 0x180265e51
jmp 0x180265ee4
mov rcx, qword [rsp + 0x25f8]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, 0x4d0
xor edx, edx
lea rcx, [rsp + 0x1a60]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x1a90], 0x10000b
lea rdx, [rsp + 0x1a60]
mov rcx, qword [rsp + 0x25f8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180265ee4
mov rcx, qword [rsp + 0x25f8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
jmp 0x1802666c8
jmp 0x180265f00
lea rax, [rsp + 0x1a60]
mov rdi, rax
mov rsi, qword [rsp + 0x2600]
mov ecx, 0x4d0
rep movsb byte [rdi], byte [rsi]
mov r8d, 0x108
xor edx, edx
lea rcx, [rsp + 0x1950]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x74], 0x8664
mov rax, qword [rsp + 0x1b58]
mov qword [rsp + 0x1950], rax
mov dword [rsp + 0x195c], 3
mov rax, qword [rsp + 0x1af8]
mov qword [rsp + 0x1970], rax
mov dword [rsp + 0x197c], 3
mov rax, qword [rsp + 0x1af8]
mov qword [rsp + 0x1980], rax
mov dword [rsp + 0x198c], 3
mov ecx, 0x420
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x180265f90
jmp 0x18026665b
mov r8d, 0x420
xor edx, edx
mov rcx, qword [rsp + 0x58]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x58]
mov dword [rax], 0x20
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x18], 0x400
mov r8d, 0x28
xor edx, edx
lea rcx, [rsp + 0xf8]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0xf8], 0x28
mov r8d, 0x688
xor edx, edx
lea rcx, [rsp + 0x1f30]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x1f30], 0x688
mov dword [rsp + 0x64], 0
jmp 0x18026600d
mov eax, dword [rsp + 0x64]
inc eax
mov dword [rsp + 0x64], eax
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x540]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov rcx, qword [rsp + 0x25f0]
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x40], 0
mov rax, qword [rax + 0x508]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 0x4f8]
mov qword [rsp + 0x30], rax
lea rax, [0x180267080]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x1a60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x1950]
mov r8, qword [rsp + 0x25f8]
mov rax, qword [rsp + 0x25f0]
mov rdx, qword [rax + 0x10]
mov ecx, dword [rsp + 0x74]
call qword [rsp + 0x88]
test eax, eax
jne 0x1802660e2
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x90], rax
mov r9, qword [rsp + 0x1950]
xor r8d, r8d
lea rdx, [0x1802f8de8]
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0x90]
jmp 0x18026665b
mov rax, qword [rsp + 0x1950]
mov qword [rsp + 0x120], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x128], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x528], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x928], 0
mov qword [rsp + 0xd28], 0
mov dword [rsp + 0xd30], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0xd38], 0
mov dword [rsp + 0xd34], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x1550], 0
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x1148], 0
mov rax, qword [rsp + 0x1960]
cmp qword [rsp + 0x1950], rax
jne 0x1802661f4
mov rax, qword [rsp + 0x25f0]
cmp dword [rax + 0x2c], 0
jle 0x1802661e8
mov rax, qword [rsp + 0x25f0]
mov eax, dword [rax + 0x2c]
cmp dword [rsp + 0x60], eax
jle 0x1802661e8
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x98], rax
mov r9, qword [rsp + 0x1950]
xor r8d, r8d
lea rdx, str.StackWalk64_Endless_Callstack_
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0x98]
jmp 0x18026665b
mov eax, dword [rsp + 0x60]
inc eax
mov dword [rsp + 0x60], eax
jmp 0x1802661fc
mov dword [rsp + 0x60], 0
cmp qword [rsp + 0x1950], 0
je 0x1802665bb
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x520]
mov qword [rsp + 0xa0], rax
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0xd28]
mov rdx, qword [rsp + 0x1950]
mov rax, qword [rsp + 0x25f0]
mov rcx, qword [rax + 0x10]
call qword [rsp + 0xa0]
test eax, eax
je 0x1802662f7
mov rax, qword [rsp + 0x58]
add rax, 0x1c
mov r8, rax
mov edx, 0x400
lea rcx, [rsp + 0x128]
call fcn.180267130
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x548]
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0x58]
add rax, 0x1c
mov r9d, 0x1000
mov r8d, 0x400
lea rdx, [rsp + 0x528]
mov rcx, rax
call qword [rsp + 0xa8]
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x548]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x58]
add rax, 0x1c
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rsp + 0x928]
mov rcx, rax
call qword [rsp + 0xb0]
jmp 0x18026633b
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x78], eax
mov r9, qword [rsp + 0x1950]
mov r8d, dword [rsp + 0x78]
lea rdx, [0x1802f8e18]
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0xb8]
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
cmp qword [rax + 0x500], 0
je 0x18026640d
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x500]
mov qword [rsp + 0xc0], rax
lea r9, [rsp + 0xf8]
lea r8, [rsp + 0xd30]
mov rdx, qword [rsp + 0x1950]
mov rax, qword [rsp + 0x25f0]
mov rcx, qword [rax + 0x10]
call qword [rsp + 0xc0]
test eax, eax
je 0x1802663c9
mov eax, dword [rsp + 0x108]
mov dword [rsp + 0xd34], eax
mov r8, qword [rsp + 0x110]
mov edx, 0x400
lea rcx, [rsp + 0xd38]
call fcn.180267130
jmp 0x18026640d
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xc8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x7c], eax
mov r9, qword [rsp + 0x1950]
mov r8d, dword [rsp + 0x7c]
lea rdx, [0x1802f8e30]
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0xc8]
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax + 8]
mov qword [rsp + 0xd0], rax
lea r9, [rsp + 0x1f30]
mov r8, qword [rsp + 0x1950]
mov rax, qword [rsp + 0x25f0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0xd0]
call fcn.1802674c0
test eax, eax
je 0x180266571
mov eax, dword [rsp + 0x1f50]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 8
ja case.default.0x18026647e
movsxd rax, dword [rsp + 0x68]
lea rcx, [0x180000000]
mov eax, dword [rcx + rax*4 + 0x2666e4]
add rax, rcx
jmp rax
lea rax, [0x1802f8e48]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8e54]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8d24]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8d3c]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8e60]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8e70]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8d4c]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8df4]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
lea rax, [0x1802f8e80]
mov qword [rsp + 0x1140], rax
jmp 0x18026652b
mov qword [rsp + 0x1140], 0
lea r8, [rsp + 0x1f54]
mov edx, 0x400
lea rcx, [rsp + 0x1148]
call fcn.180267130
mov rax, qword [rsp + 0x1f38]
mov qword [rsp + 0x1548], rax
lea r8, [rsp + 0x2074]
mov edx, 0x400
lea rcx, [rsp + 0x1550]
call fcn.180267130
jmp 0x1802665bb
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0xd8], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
mov r9, qword [rsp + 0x1950]
mov r8d, dword [rsp + 0x80]
lea rdx, [0x1802f8e88]
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0xd8]
mov dword [rsp + 0x6c], 1
cmp dword [rsp + 0x64], 0
jne 0x1802665d2
mov dword [rsp + 0x6c], 0
mov byte [rsp + 0x50], 0
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xe0], rax
lea r8, [rsp + 0x120]
mov edx, dword [rsp + 0x6c]
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0xe0]
cmp qword [rsp + 0x1960], 0
jne 0x180266656
mov byte [rsp + 0x50], 1
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xe8], rax
lea r8, [rsp + 0x120]
mov edx, 2
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0xe8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x18026665b
jmp 0x180266003
cmp qword [rsp + 0x58], 0
je 0x18026666e
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movzx eax, byte [rsp + 0x50]
test eax, eax
jne 0x1802666aa
mov rax, qword [rsp + 0x25f0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xf0], rax
lea r8, [rsp + 0x120]
mov edx, 2
mov rcx, qword [rsp + 0x25f0]
call qword [rsp + 0xf0]
cmp qword [rsp + 0x2600], 0
jne 0x1802666c3
mov rcx, qword [rsp + 0x25f8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov rcx, qword [rsp + 0x25c0]
xor rcx, rsp
call fcn.180269d00
add rsp, 0x25d8
pop rdi
pop rsi
ret