Function at 0x180005d80
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x968
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x192
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x988]
mov rax, qword [0x18021c400]
xor rax, rbp
mov qword [rbp + 0x930], rax
lea rcx, [0x1802350a6]
call fcn.18013e710
cmp qword [rbp + 0x960], 0
je 0x180005de4
mov rax, qword [rbp + 0x960]
mov rcx, qword [0x18021c7b0]
mov qword [rax], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021c7a8], eax
je 0x180005dfc
mov eax, 0x10dd
jmp 0x180006250
cmp dword [0x18021c7ac], 0
je 0x180005e15
call fcn.180005ab0
mov eax, dword [0x18021c7ac]
jmp 0x180006250
mov dword [rbp + 0x44], 0
mov rax, qword [0x18021c7c0]
mov qword [rbp + 8], rax
jmp 0x180005e34
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180005efa
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
je 0x180005e89
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x20]
add rcx, 0x20
mov r8d, eax
mov rdx, rcx
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call sub.VCRUNTIME140D.dll_memcpy
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x10]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x18]
mov qword [rax], rcx
jmp 0x180005ef5
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
add rax, 0x50
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x20]
add rcx, 0x58
mov rdx, rax
call fcn.1800040a0
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
add rax, 0x58
mov rdx, rax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call fcn.180004010
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov rdx, qword [rax + 0x48]
mov rcx, qword [rbp + 0x68]
call fcn.180003fa0
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov rcx, qword [rbp + 8]
mov rcx, qword [rcx + 0x10]
mov qword [rcx], rax
jmp 0x180005e29
mov rax, qword [0x18021c7b8]
mov qword [rbp + 0x28], rax
jmp 0x180005f12
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x18000606a
mov dword [rbp + 0xc0], 0x100001
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180006065
mov rax, qword [0x18021c7c0]
mov qword [rbp + 8], rax
jmp 0x180005f5c
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180006065
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
je 0x180005fe5
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
cmp qword [rbp + 0x188], rax
jb 0x180005fe3
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
add rax, 8
cmp qword [rbp + 0x188], rax
jae 0x180005fe3
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
mov rcx, qword [rbp + 0x188]
sub rcx, rax
mov rax, rcx
movzx edx, al
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.180003270
movzx eax, al
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 0x18]
mov qword [rbp + 0x188], rax
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x180006060
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
cmp qword [rbp + 0x188], rax
jb 0x180006060
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 0x18]
cmp qword [rbp + 0x188], rax
jae 0x180006060
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x18]
mov rcx, qword [rbp + 0x188]
sub rcx, rax
mov rax, rcx
movzx eax, al
mov edx, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.1800031e0
cdqe
mov rcx, qword [rbp + 8]
add rax, qword [rcx + 0x20]
mov qword [rbp + 0x188], rax
lea rdx, [rbp + 0x90]
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
jmp 0x180005f51
jmp 0x180005f07
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbp + 0x578], rax
mov rax, qword [0x18021c7c0]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x180006175
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rbp + 0x594]
mov rcx, qword [rbp + 8]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rax, qword [rbp + 8]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
mov r8d, eax
mov rax, qword [rbp + 8]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rbp + 0x578]
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov rax, qword [rbp + 8]
cmp dword [rax + 8], 0
je 0x180006111
mov rax, qword [rbp + 8]
cmp qword [rax + 0x20], 0
je 0x180006111
mov rax, qword [rbp + 8]
mov rcx, qword [rax + 0x20]
call fcn.180003e90
mov rax, qword [rbp + 8]
mov qword [rax + 0x20], 0
mov dword [rbp + 0x44], 1
mov rax, qword [rbp + 8]
mov rax, qword [rax]
mov qword [rbp + 0x5b8], rax
mov rax, qword [rbp + 8]
mov qword [rbp + 0x8f8], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x8f8]
call fcn.18013e480
cmp qword [rbp + 0x8f8], 0
jne 0x180006152
mov qword [rbp + 0x928], 0
jmp 0x180006165
mov qword [rbp + 8], 0x8123
mov rax, qword [rbp + 8]
mov qword [rbp + 0x928], rax
mov rax, qword [rbp + 0x5b8]
mov qword [rbp + 8], rax
jmp 0x180006082
mov qword [0x18021c7c0], 0
cmp dword [rbp + 0x44], 0
je 0x180006194
cmp dword [0x18021c7a4], 0
jne 0x180006194
call fcn.180003f00
call fcn.180004ae0
mov rax, qword [0x18021c7b8]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x18000621a
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbp + 0x28]
mov rax, qword [rax]
mov qword [rbp + 0x5d8], rax
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x918], rax
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rbp + 0x918]
call fcn.18013e480
cmp qword [rbp + 0x918], 0
jne 0x1800061fa
mov qword [rbp + 0x928], 0
jmp 0x18000620d
mov qword [rbp + 0x28], 0x8123
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x928], rax
mov rax, qword [rbp + 0x5d8]
mov qword [rbp + 0x28], rax
jmp 0x1800061a4
mov qword [0x18021c7b8], 0
mov dword [0x18021c7a8], 0
cmp qword [rbp + 0x960], 0
je 0x18000624a
mov rax, qword [rbp + 0x960]
mov rcx, qword [0x18021c7b0]
mov qword [rax], rcx
mov eax, dword [0x18021c7ac]
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014a020]
call fcn.18013e4e0
mov rax, rdi
mov rcx, qword [rbp + 0x930]
xor rcx, rbp
call fcn.18013e960
lea rsp, [rbp + 0x948]
pop rdi
pop rbp
ret