Function at 0x180010d20
Capabilities:
Resume thread

Disassembly:
xor ecx, ecx
jmp 0x180010d20
push r14
sub rsp, 0x530
mov rax, qword [0x18003d4c8]
xor rax, rsp
mov qword [rsp + 0x500], rax
mov r14, rcx
test rcx, rcx
je 0x180010d4d
mov rax, qword [0x18003e080]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18003e068], eax
je 0x180010d65
mov eax, 0x10dd
jmp 0x18001113d
cmp dword [0x18003e07c], 0
je 0x180010d78
call fcn.180010b00
jmp 0x180011137
mov qword [rsp + 0x548], rbx
mov rbx, qword [0x18003e090]
mov qword [rsp + 0x550], rbp
mov qword [rsp + 0x520], rdi
mov qword [rsp + 0x518], r12
xor r12d, r12d
mov qword [rsp + 0x510], r15
mov r15d, r12d
test rbx, rbx
je 0x180010e66
cmp dword [rbx + 8], r12d
je 0x180010dd8
mov rdx, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x18]
movzx r8d, byte [rdx + 0x3e]
add rdx, 0x20
call fcn.1800133e0
mov rax, qword [rbx + 0x18]
jmp 0x180010e53
mov rax, qword [rbx + 0x20]
mov word [rax + 0x58], 0x25ff
lea rcx, [rax + 0x58]
lea rdx, [rax + 0x50]
lea rax, [rcx + 6]
sub edx, eax
mov dword [rcx + 2], edx
mov r9, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x20]
add rcx, 0x58
mov byte [r9], 0xe9
lea rax, [r9 + 5]
inc r9
sub ecx, eax
mov dword [r9], ecx
lea rdx, [r9 + 4]
mov rax, qword [rbx + 0x20]
mov r8, qword [rax + 0x48]
sub r8, rdx
cmp rdx, qword [rax + 0x48]
cmova r8, r12
test r8, r8
je 0x180010e4f
mov rax, rdx
sub rax, r9
sub rax, 4
nop word [rax + rax]
inc rax
mov byte [rdx], 0xcc
lea rdx, [rdx + 1]
cmp rax, r8
jb 0x180010e40
mov rax, qword [rbx + 0x20]
mov rcx, qword [rbx + 0x10]
mov qword [rcx], rax
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180010db6
mov rdi, qword [0x18003e088]
test rdi, rdi
je 0x180010fa2
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x100001
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180010f96
mov rbx, qword [0x18003e090]
test rbx, rbx
je 0x180010f96
mov rcx, qword [rsp + 0x128]
nop dword [rax]
cmp dword [rbx + 8], r12d
je 0x180010f16
mov r9, qword [rbx + 0x20]
cmp rcx, r9
jb 0x180010f8a
lea rax, [r9 + 8]
cmp rcx, rax
jae 0x180010f8a
movzx r8d, byte [rsp + 0x128]
mov edx, r12d
sub r8b, r9b
mov rax, r12
movzx ecx, byte [r9 + rax + 0x40]
shr cl, 3
cmp cl, r8b
je 0x180010f05
inc edx
inc rax
cmp edx, 8
jb 0x180010ee2
xor al, al
movzx eax, al
add rax, qword [rbx + 0x18]
jmp 0x180010f6b
movzx eax, byte [rax + r9 + 0x40]
and al, 7
movzx eax, al
add rax, qword [rbx + 0x18]
jmp 0x180010f6b
mov rdx, qword [rbx + 0x18]
cmp rcx, rdx
jb 0x180010f8a
mov r9, qword [rbx + 0x20]
movzx eax, byte [r9 + 0x3e]
add rax, rdx
cmp rcx, rax
jae 0x180010f8a
movzx r8d, byte [rsp + 0x128]
mov edx, r12d
sub r8b, byte [rbx + 0x18]
mov rcx, r12
movzx eax, byte [r9 + rcx + 0x40]
and al, 7
cmp al, r8b
je 0x180010f5f
inc edx
inc rcx
cmp edx, 8
jb 0x180010f43
mov eax, r12d
jmp 0x180010f68
movzx eax, byte [rcx + r9 + 0x40]
shr eax, 3
add rax, r9
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x128], rax
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, qword [rsp + 0x128]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x180010eb0
mov rdi, qword [rdi]
test rdi, rdi
jne 0x180010e76
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [0x18003e090]
mov rbp, rax
test rdi, rdi
je 0x180011055
mov qword [rsp + 0x528], rsi
mov rax, qword [rdi + 0x20]
lea r9, [rsp + 0x20]
mov r8d, dword [rdi + 0x28]
mov rcx, qword [rdi + 0x18]
movzx edx, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rdi + 0x20]
mov rcx, rbp
mov rdx, qword [rdi + 0x18]
movzx r8d, byte [rax + 0x3e]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [rdi + 8], r12d
je 0x180011031
mov rsi, qword [rdi + 0x20]
test rsi, rsi
je 0x180011031
xor edx, edx
mov rbx, rsi
and rbx, 0xffffffffffff0000
mov rcx, rsi
lea r8d, [rdx + 0x60]
call fcn.180015470
mov rax, qword [rbx + 0x10]
mov r15d, 1
mov qword [rsi + 0x48], rax
mov qword [rbx + 0x10], rsi
mov qword [rdi + 0x20], r12
mov rbx, qword [rdi]
mov edx, 0x30
mov rcx, rdi
call fcn.180012694
mov rdi, rbx
test rbx, rbx
jne 0x180010fc3
mov rsi, qword [rsp + 0x528]
mov rbp, qword [rsp + 0x550]
test r15d, r15d
mov r15, qword [rsp + 0x510]
mov qword [0x18003e090], r12
je 0x18001107f
cmp dword [0x18003e078], r12d
jne 0x18001107f
call fcn.180010370
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, qword [0x18003e060]
mov rdi, rax
test rbx, rbx
je 0x1800110d4
nop dword [rax]
nop dword [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x20
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov r8d, 0x10000
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800110a0
mov rdi, qword [0x18003e088]
test rdi, rdi
je 0x180011102
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, sendto
mov rcx, rdi
call fcn.180012694
mov rdi, rbx
test rbx, rbx
jne 0x1800110e0
mov rdi, qword [rsp + 0x520]
mov rbx, qword [rsp + 0x548]
mov qword [0x18003e088], r12
mov dword [0x18003e068], r12d
mov r12, qword [rsp + 0x518]
test r14, r14
je 0x180011137
mov rax, qword [0x18003e080]
mov qword [r14], rax
mov eax, dword [0x18003e07c]
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.180012250
add rsp, 0x530
pop r14
ret