Function at 0x1401171e0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x1402d9040]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rbx, rdx
mov rbp, rcx
mov edx, 0x110
mov ecx, 1
mov r13, r9
mov r12d, r8d
call qword [case.0x14010f187.1]
mov qword [rbp + 0xd98], rax
mov rsi, rax
mov r15d, recv
test rax, rax
je 0x140117395
xor r14d, r14d
mov dword [rbp + 0xda8], r12d
mov dword [rbp + 0xdac], r14d
lea rdi, [rax + 0x20]
mov qword [rbp + 0xd90], r14
mov rcx, rdi
mov byte [rbp + 0xdb0], 0
xor edx, edx
mov r8d, 0xf0
mov qword [rax + 8], r14
mov qword [rax], r14
call sub.VCRUNTIME140.dll_memset
movups xmm0, xmmword [r13]
lea ecx, [r15 + 0x1c]
mov qword [rdi + 0xe8], rsi
movups xmm1, xmmword [r13 + 0x10]
mov dword [rdi + 0x84], r12d
movups xmmword [rdi + 0xb8], xmm0
mov dword [rdi + 0x80], 1
movups xmm0, xmmword [r13 + 0x20]
movups xmmword [rdi + 0xc8], xmm1
movups xmmword [rdi + 0xd8], xmm0
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [rdi + 0x78], rax
test rax, rax
je 0x140117300
xor edx, edx
lea r8d, [r15 - 0xb]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
lea r9, [rdi + 0x98]
call fcn.14015caf0
test eax, eax
jns 0x1401173cb
mov qword [rdi + 0x98], 0xffffffffffffffff
mov qword [rdi + 0xa0], 0xffffffffffffffff
mov rcx, qword [rdi + 0x98]
cmp rcx, 0xffffffffffffffff
je 0x14011731e
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x98], 0xffffffffffffffff
mov rcx, qword [rdi + 0x78]
test rcx, rcx
je 0x140117337
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov rcx, qword [rdi + 0x78]
call qword [fcn.14016c458]
mov rcx, qword [rdi + 0x88]
call qword [fcn.14016c458]
mov rcx, qword [rdi + 0xb0]
test rcx, rcx
je 0x140117362
mov rbx, qword [rcx + 0x28]
call qword [fcn.14016c458]
mov rcx, rbx
test rbx, rbx
jne 0x140117350
mov rcx, qword [rdi + 0xa0]
cmp rcx, 0xffffffffffffffff
je 0x140117375
call qword [sym.imp.WS2_32.dll_closesocket]
xor edx, edx
mov r8d, 0xf0
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
mov rcx, rsi
mov qword [rbp + 0xd98], r14
call qword [fcn.14016c458]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r15d
xor al, al
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14016b380
mov rbx, qword [rsp + 0x2c8]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, rbx
mov dword [rdi + 0xa8], r14d
call qword [case.0x14010f187.0]
mov qword [rdi + 0x88], rax
test rax, rax
je 0x140117300
mov rcx, qword [rbp + 0xd88]
call qword [fcn.14016c458]
mov rcx, rbx
call qword [case.0x14010f187.0]
mov qword [rbp + 0xd88], rax
test rax, rax
je 0x1401175a9
cmp byte [0x1402dbf20], r14b
mov dword [rsi + 0xa0], r14d
je 0x14011755f
cmp qword [0x1402db5f0], r14
je 0x14011755f
cmp qword [0x1402db600], r14
je 0x14011755f
cmp qword [0x1402db5f8], r14
je 0x14011755f
mov r9d, 0xffffffff
mov dword [rsp + 0x28], r14d
mov r8, rbx
mov qword [rsp + 0x20], r14
mov ecx, 0xfde9
lea edx, [r9 + 9]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [rax - 1]
cmp edx, 0xfe
ja 0x14011755f
mov dword [rsp + 0x28], eax
mov r9d, 0xffffffff
lea rax, [rsp + 0x60]
mov r8, rbx
xor edx, edx
mov qword [rsp + 0x20], rax
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
dec eax
cmp eax, 0xfe
ja 0x14011755f
mov r9d, r12d
lea r8, [0x1402aa5ac]
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.140116ae0
mov eax, dword [r13 + 4]
xor r9d, r9d
mov dword [rsi + 0x54], eax
xor r8d, r8d
mov eax, dword [r13 + 8]
xor ecx, ecx
mov dword [rsi + 0x58], eax
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], rax
test rax, rax
jne 0x1401174fe
mov dword [rsi + 0xa0], 1
jmp 0x1401175a9
lea rax, [rsi + 0x48]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x40]
lea rax, [fcn.140116ce0]
mov r8d, r15d
mov qword [rsp + 0x40], rax
lea rdx, [rsi + 0x50]
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x50]
call qword [0x1402db5f8]
cmp eax, 0x3e5
je 0x14011758b
mov r8, rdi
xor edx, edx
mov ecx, eax
call fcn.140116ce0
mov al, 1
jmp 0x1401173a0
mov qword [rsp + 0x28], r14
lea r8, [0x140116f80]
mov r9, rdi
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140117592
mov qword [rsi + 8], rax
mov al, 1
jmp 0x1401173a0
mov qword [rsi + 8], r14
mov dword [rsi + 0xa0], 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r15d, dword [rax]
mov rdi, qword [rbp + 0xd98]
test rdi, rdi
je 0x140117690
mov rcx, qword [rdi + 0x98]
mov rsi, qword [rdi + 0xb8]
mov r14, qword [rdi + 0xb0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [rdi + 0xa0]
mov rcx, qword [rdi + 0x98]
mov dword [rdi + 0xa0], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rax, qword [rdi]
test ebx, ebx
jne 0x140117614
test rax, rax
je 0x140117608
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140117679
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140117679
test rax, rax
je 0x14011763a
lea rcx, [rdi + 0x48]
call qword [0x1402db600]
mov rcx, qword [rdi]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140117663
xor r8d, r8d
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0
lea rcx, [rdi + 0x20]
call fcn.140116b40
mov rcx, qword [rbp + 0xd98]
call qword [fcn.14016c458]
mov rdx, rsi
mov rcx, r14
call fcn.140104d60
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
xor r14d, r14d
mov rcx, qword [rbp + 0xd88]
mov qword [rbp + 0xd98], r14
call qword [fcn.14016c458]
mov qword [rbp + 0xd88], r14
jmp 0x140117395