Function at 0x1400706f0
Capabilities:
Create thread

Disassembly:
push rbp
push r12
push r13
push r14
sub rsp, 0x88
mov rax, qword [0x14067e680]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor r14d, r14d
mov qword [rsp + 0x50], r9
cmp byte [0x14068823a], r14b
mov rbp, r9
mov r12d, r8d
mov qword [rsp + 0x40], rcx
mov r13, rdx
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x58], r14d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x60], r14
jne 0x140070748
xor al, al
jmp 0x140070b53
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140070b4d
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0x28], rcx
lea r8, [0x1400706d0]
xor ecx, ecx
mov qword [rsp + 0x78], rdi
mov r9, rax
mov qword [rsp + 0x70], r15
xor edx, edx
mov dword [rsp + 0x20], r14d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r15, rax
test rax, rax
je 0x140070b1f
mov qword [rsp + 0x80], rsi
nop
mov edi, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, 5
mov ebx, eax
mov esi, 0xffffffff
call fcn.14006fb90
mov r10, rax
test rax, rax
je 0x140070ac8
mov rdx, rax
cmp qword [rax + 0x50], rbx
je 0x1400707ef
mov ecx, dword [rdx]
test ecx, ecx
je 0x140070824
add rdx, rcx
cmp qword [rdx + 0x50], rbx
jne 0x1400707e0
mov r8d, dword [rdx + 4]
mov ecx, r14d
test r8d, r8d
je 0x140070824
lea rax, [rdx + 0x130]
cmp qword [rax], rdi
je 0x140070814
inc ecx
add rax, 0x50
cmp ecx, r8d
jb 0x140070802
jmp 0x140070824
mov eax, ecx
lea rcx, [rax + rax*4]
add rcx, rcx
mov esi, dword [rdx + rcx*8 + 0x144]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_LocalFree]
cmp esi, 0xffffffff
je 0x140070ac8
cmp esi, 5
je 0x140070846
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x1400707b0
mov ecx, reloc.WS2_32.dll_recv
mov rbp, r14
call fcn.14006fb90
mov rdi, rax
test rax, rax
je 0x140070ac3
mov ebx, r14d
cmp dword [rax], ebx
jbe 0x14007089b
nop word [rax + rax]
mov ecx, ebx
lea rdx, [rcx + rcx*2]
lea rsi, [rdi + rdx*8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsi + 8]
cmp ecx, eax
jne 0x14007088f
cmp word [rsi + 0xe], r15w
je 0x140070897
inc ebx
cmp ebx, dword [rdi]
jb 0x140070870
jmp 0x14007089b
mov rbp, qword [rsi + 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
test rbp, rbp
je 0x140070ac3
lea rcx, [rbp + 0x38]
lea rdx, [rsp + 0x48]
call fcn.14006fdf0
test al, al
je 0x140070ac3
lea rcx, [rbp + 0x58]
lea rdx, [rsp + 0x60]
call fcn.14006fdf0
test al, al
je 0x140070ac3
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x60]
add rbx, 0xfffffffffffffff8
cmp rbx, rdi
jbe 0x140070ac3
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x60], r14
mov rcx, rbx
call fcn.14006fdf0
test al, al
je 0x140070ac3
mov rcx, qword [rsp + 0x60]
mov rdx, qword [0x140688408]
cmp rcx, rdx
jbe 0x140070929
mov eax, dword [0x1406883f4]
add rax, rdx
cmp rcx, rax
jb 0x140070937
sub rbx, 8
cmp rbx, rdi
ja 0x1400708f0
jmp 0x140070ac3
test rbx, rbx
je 0x140070ac3
mov rdx, qword [0x1406883e8]
mov rcx, rbx
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [rsp + 0x40]
lea rcx, [rbx + 0x28]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [r13]
lea rcx, [rbx + 0x30]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [r13 + 8]
lea rcx, [rbx + 0x38]
call fcn.14006ff40
test al, al
je 0x140070ac3
cmp r12d, 2
jbe 0x1400709b2
mov rdx, qword [r13 + 0x10]
lea rcx, [rbx + 0x40]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [0x1406883d8]
lea rcx, [rbx + 0x50]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov edi, 4
cmp r12d, edi
jbe 0x140070a05
lea rsi, [r13 + 0x20]
nop dword [rax + rax]
mov rdx, qword [rsi]
lea ecx, [rdi*8 + 0x58]
add rcx, rbx
call fcn.14006ff40
test al, al
je 0x140070ac3
inc edi
add rsi, 8
cmp edi, r12d
jb 0x1400709e0
mov rdx, qword [0x1406883c8]
lea rcx, [rbx + 0xc0]
call fcn.14006ff40
test al, al
je 0x140070ac3
lea rcx, [rbx + 0xc8]
lea rdx, [rsp + 0x30]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [0x1406883c0]
lea rcx, [rbx + 0xd0]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [0x1406883d0]
lea rcx, [rbx + 0xd8]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [0x1406883e8]
lea rcx, [rbx + 0xe0]
call fcn.14006ff40
test al, al
je 0x140070ac3
mov rdx, qword [0x1406883e0]
lea rcx, [rbx + 0x108]
call fcn.14006ff40
test al, al
je 0x140070ac3
lea rcx, [rbx + 0x110]
mov rdx, r15
call fcn.14006ff40
test al, al
je 0x140070ac3
lea rcx, [rbx + 0x118]
mov edx, 0x1337
call fcn.14006ff40
test al, al
je 0x140070ac3
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
mov dword [rsp + 0x50], r14d
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, 0xffffffff
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [rsp + 0x50], 0x1337
mov rsi, qword [rsp + 0x80]
jne 0x140070b24
test rbp, rbp
je 0x140070b17
mov rax, qword [rsp + 0x30]
mov qword [rbp], rax
mov r14d, 1
jmp 0x140070b24
mov rdi, qword [rsp + 0x38]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x78]
test r15, r15
je 0x140070b40
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0xc0]
mov r15, qword [rsp + 0x70]
test r14d, r14d
setne al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14025efe0
add rsp, 0x88
pop r14
pop r13
pop r12
pop rbp
ret