Function at 0x18009aa08
Capabilities:
Resume thread

Disassembly:
xor ecx, ecx
jmp 0x18009aa08
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x408]
sub rsp, 0x4f0
xor r15d, r15d
mov rsi, rcx
test rcx, rcx
je 0x18009aa3f
mov rax, qword [0x18010b660]
mov qword [rcx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18010b654], eax
je 0x18009aa57
mov eax, 0x10dd
jmp 0x18009acb1
cmp dword [0x18010b658], r15d
je 0x18009aa6a
call fcn.18009a8e0
jmp 0x18009acab
mov rbx, qword [0x18010b670]
jmp 0x18009ab33
mov rdx, qword [rbx + 0x20]
cmp dword [rbx + 8], r15d
je 0x18009aaed
mov edi, r15d
cmp byte [rdx + 0x1f], r15b
jbe 0x18009aac3
movsxd rcx, edi
lea r9, [rbp + 0x410]
add rcx, qword [rbx + 0x18]
xor r8d, r8d
mov dword [rbp + 0x410], r15d
call fcn.18009b198
mov rdx, rax
cmp dword [rbp + 0x410], r15d
jne 0x18009aac3
mov edi, eax
mov rax, qword [rbx + 0x20]
sub edi, dword [rbx + 0x20]
movzx ecx, byte [rax + 0x1f]
cmp edi, ecx
jl 0x18009aa89
mov rax, qword [rbx + 0x20]
mov rdx, qword [rbx + 0x10]
movzx ecx, byte [rax + 0x1f]
cmp edi, ecx
je 0x18009aae4
mov dword [0x18010b658], 0xd
mov qword [0x18010b660], rdx
mov rax, qword [rbx + 0x18]
mov qword [rdx], rax
jmp 0x18009ab30
mov rcx, qword [rbx + 0x18]
mov word [rcx], 0x25ff
lea rax, [rcx + 6]
sub edx, eax
add edx, 0x28
mov dword [rcx + 2], edx
add rcx, 6
mov rdx, qword [rbx + 0x20]
mov r8, qword [rdx + 0x20]
sub r8, rcx
cmp rcx, qword [rdx + 0x20]
cmova r8, r15
test r8, r8
je 0x18009ab29
mov dl, 0xcc
call fcn.1800a02d0
mov rdx, qword [rbx + 0x20]
mov rax, qword [rbx + 0x10]
mov qword [rax], rdx
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18009aa76
mov rdi, qword [0x18010b668]
jmp 0x18009abe0
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], CoInitializeEx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x18009abdd
mov rbx, qword [0x18010b670]
test rbx, rbx
je 0x18009abdd
mov rdx, qword [rbp + 0x18]
cmp dword [rbx + 8], r15d
je 0x18009ab98
mov rcx, qword [rbx + 0x20]
cmp rdx, rcx
jb 0x18009abd5
lea rax, [rcx + 8]
cmp rdx, rax
jae 0x18009abd5
sub rdx, rcx
mov qword [rbp + 0x18], rdx
mov rcx, qword [rbx + 0x18]
jmp 0x18009abbb
cmp rdx, qword [rbx + 0x18]
jb 0x18009abd5
mov rax, qword [rbx + 0x20]
movzx ecx, byte [rax + 0x1f]
add rcx, qword [rbx + 0x18]
cmp rdx, rcx
jae 0x18009abd5
sub rdx, qword [rbx + 0x18]
mov qword [rbp + 0x18], rdx
mov rcx, qword [rbx + 0x20]
add rcx, rdx
lea rdx, [rsp + 0x20]
mov qword [rbp + 0x18], rcx
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rdx, qword [rbp + 0x18]
mov rbx, qword [rbx]
test rbx, rbx
jne 0x18009ab73
mov rdi, qword [rdi]
test rdi, rdi
jne 0x18009ab48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, qword [0x18010b670]
mov r14, rax
test rdi, rdi
je 0x18009ac59
mov rcx, qword [rdi + 0x20]
lea r9, [rbp + 0x410]
mov r8d, dword [rdi + 0x28]
movzx edx, byte [rcx + 0x1f]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rdi + 0x20]
mov rcx, r14
mov rdx, qword [rdi + 0x18]
movzx r8d, byte [rax + 0x1f]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp dword [rdi + 8], r15d
je 0x18009ac41
cmp qword [rdi + 0x20], r15
je 0x18009ac41
mov qword [rdi + 0x20], r15
mov rbx, qword [rdi]
mov edx, gethostbyname
mov rcx, rdi
call fcn.18009d1f4
mov rdi, rbx
test rbx, rbx
jne 0x18009abfe
mov rdi, qword [0x18010b668]
mov qword [0x18010b670], r15
test rdi, rdi
je 0x18009ac8e
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rbx, qword [rdi]
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.18009d1f4
mov rdi, rbx
test rbx, rbx
jne 0x18009ac6c
mov qword [0x18010b668], r15
mov dword [0x18010b654], r15d
test rsi, rsi
je 0x18009acab
mov rax, qword [0x18010b660]
mov qword [rsi], rax
mov eax, dword [0x18010b658]
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret