Function at 0x1400421dd
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x2b8
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffff80
mov r13, r8
mov rsi, rdx
mov r14, rcx
movzx eax, byte [rdx + 0x78]
push 2
pop r12
test eax, eax
je 0x14004226d
cmp eax, 3
jne 0x140042b01
lea rbx, [rsi + 0x70]
lea rdi, [rsi + 0x30]
movzx eax, byte [rsi + 0x70]
test eax, eax
je 0x140042336
mov qword [rsp + 0xa0], rdi
cmp eax, 3
jne 0x140042b01
mov rax, qword [rsi + 0x68]
mov rdx, qword [rax + 0x10]
lea rdi, [rsp + 0x190]
mov rcx, rdi
mov r8, r13
call fcn.14007c2fc
mov al, byte [rdi + 9]
cmp al, 3
jne 0x140042622
mov byte [rbx], 3
jmp 0x1400429a3
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x28], rcx
cmp word [rsi], 0
movzx eax, word [rsi + 0x12]
mov word [rsp + 0xe0], ax
movups xmm0, xmmword [rsi + 2]
movaps xmmword [rsp + 0xd0], xmm0
je 0x140042353
mov eax, dword [rsi + 0x14]
mov edx, dword [rsi + 0x18]
movzx r9d, word [rsi + 0x1c]
mov r8, qword [rsp + 0xd2]
mov r10d, dword [rsp + 0xda]
movzx r11d, word [rsp + 0xde]
movzx edi, word [rsp + 0xe0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x1ac], xmm0
movups xmmword [rsp + 0x1bc], xmm0
movups xmmword [rsp + 0x1cc], xmm0
and dword [rsp + 0x20c], 0
movups xmmword [rsp + 0x1dc], xmm0
movups xmmword [rsp + 0x1ec], xmm0
rol r9w, 8
movups xmmword [rsp + 0x1fc], xmm0
mov qword [rsp + 0x198], r8
mov dword [rsp + 0x1a0], r10d
mov word [rsp + 0x1a4], r11w
mov word [rsp + 0x1a6], di
mov dword [rsp + 0x1a8], edx
push 0x1c
pop r8
mov r10w, 0x17
jmp 0x14004239c
mov qword [rsp + 0xf0], r13
mov qword [rsp + 0xa8], rbx
mov rbx, qword [rsi + 0x30]
mov r12, qword [rsi + 0x38]
jmp 0x140042419
lea rdx, [rsp + 0x198]
movzx r9d, word [rsp + 0xd4]
mov eax, dword [rsp + 0xd0]
rol r9w, 8
xorps xmm0, xmm0
movups xmmword [rdx + 0x60], xmm0
movups xmmword [rdx + 0x50], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x20], xmm0
and qword [rdx + 0x70], 0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx], xmm0
push 0x10
pop r8
mov r10w, 2
lea rdx, [rsp + 0x190]
mov word [rdx], r10w
mov word [rdx + 2], r9w
mov dword [rdx + 4], eax
mov dword [rdx + 0x80], r8d
call sub.ws2_32.dll_connect
test eax, eax
je 0x1400423ed
call fcn.140034700
mov r15, rax
mov qword [rsp + 0x100], rax
mov rcx, rax
call fcn.14001c5d4
cmp al, 0xd
jne 0x140042614
lea rcx, [rsp + 0x100]
call fcn.14003b658
mov qword [rsp + 0xf0], r13
mov rbx, qword [rsi + 0x28]
mov qword [rsi + 0x30], rbx
and qword [rsi + 0x38], 0
lea rdi, [rsi + 0x30]
lea rax, [rsi + 0x70]
mov qword [rsp + 0xa8], rax
mov byte [rsi + 0x70], 0
xor r12d, r12d
call fcn.14007b46c
mov r15, rdx
mov qword [rsp + 0xb0], rbx
mov qword [rsp + 0x170], rbx
mov qword [rsp + 0x178], r12
mov qword [rsp + 0x180], rax
mov qword [rsp + 0x188], rdx
lea rbx, [rdx + 0x148]
add rdx, 0xe8
mov qword [rsp + 0x158], rax
test rax, rax
mov ecx, 0xe8
mov r13d, 0x148
cmove r13, rcx
cmove rbx, rdx
cmp qword [r15 + r13], 0
je 0x140042b01
mov qword [rsp + 0xc8], r14
lea r14, [rbx + 0x20]
mov rcx, r14
call fcn.14006b9de
cmp byte [rbx + 0x50], 0
je 0x1400424c0
lea rdx, str.A_Tokio_1.x_context_was_found__but_it_is_being_shutdown.task__was_cancelled
push 0x38
pop r8
mov cl, 0x27
call fcn.1400721f7
mov r15, rax
mov rcx, r14
call fcn.14006b9cf
push 2
pop r12
jmp 0x140042950
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0xa0], rdi
lea r14, [rsp + 0x190]
and qword [r14 + 0x17], 0
xorps xmm0, xmm0
movups xmmword [r14 + 7], xmm0
mov rax, qword [r14 + 0x1f]
mov qword [rsp + 0x138], rax
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rsp + 0x129], xmm1
movups xmm1, xmmword [r14]
movups xmmword [rsp + 0x119], xmm1
movups xmmword [rsp + 0x109], xmm0
movaps xmmword [rsp + 0x100], xmm0
mov rax, qword [rsp + 0x130]
mov qword [r14 + 0xa0], rax
mov rax, qword [rsp + 0x138]
mov qword [r14 + 0xa8], rax
movaps xmm0, xmmword [rsp + 0x120]
movaps xmmword [r14 + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0x110]
movaps xmmword [r14 + 0x80], xmm0
movaps xmm0, xmmword [rsp + 0x100]
movaps xmmword [r14 + 0x70], xmm0
mov ecx, 0x100
mov edx, pe_nt_image_headers64
call fcn.140077478
mov rdi, rax
push 1
pop rax
mov qword [rdi], rax
mov qword [rdi + 8], rax
lea rcx, [rdi + 0x10]
mov r8d, 0xb0
mov rdx, r14
call sub.msvcrt.dll_memcpy
and qword [rdi + 0xc0], 0
lock inc qword [rdi]
jle 0x140042b01
lea rdx, [rdi + 0x80]
mov rax, qword [rbx + 0x40]
cmp rax, rdx
je 0x140042b01
mov qword [rdi + 0x88], rax
and qword [rdi + 0x80], 0
test rax, rax
mov rcx, qword [rsp + 0xf8]
je 0x1400425d8
mov qword [rax], rdx
mov qword [rbx + 0x40], rdx
cmp qword [rbx + 0x48], 0
jne 0x1400425e7
mov qword [rbx + 0x48], rdx
mov qword [rsp + 0xc0], rdx
mov qword [rsp + 0x160], rdi
call fcn.14006b9cf
test r12, r12
je 0x140042633
movabs r15, 0xc00000003
push 2
pop r12
jmp 0x14004290f
mov rcx, qword [rsi + 0x28]
call fcn.14003ab4c
jmp 0x1400429d6
cmp al, 2
jne 0x1400426a2
mov r15, qword [rsp + 0x190]
jmp 0x1400427d7
mov r13, qword [r15 + r13]
lea rdx, [r13 + 0x20]
lea r14, [rsp + 0x190]
mov rcx, r14
call fcn.140019b8e
cmp qword [r14], 0
jne 0x140042b01
mov rdx, qword [rsp + 0x198]
lea r12, [rdx + 0x10]
mov rax, qword [rdx + 0x20]
test rax, rax
je 0x140042680
mov rcx, qword [r12]
mov rax, qword [rcx + rax*8 - 8]
mov rax, qword [rax]
cmp rax, 0x20
jbe 0x14004270b
mov rcx, qword [r13 + 0x18]
mov r14, rdx
mov rdx, r12
call fcn.140034f42
mov rdx, r14
test rax, rax
je 0x14004270b
mov r14, rax
xor r12d, r12d
jmp 0x140042731
mov rcx, qword [rsi + 0x58]
cmp rcx, 0xffffffffffffffff
je 0x140042b01
lea r9, [rsp + 0x100]
and dword [r9], 0
mov dword [rsp + 0x190], 4
mov qword [rsp + 0x20], rdi
mov edx, 0xffff
mov r8d, 0x1007
call sub.ws2_32.dll_getsockopt
cmp eax, 0xffffffff
je 0x1400427cf
movsxd r15, dword [rsp + 0x100]
test r15, r15
mov rdi, qword [rsp + 0xa0]
je 0x140042a0f
shl r15, 0x20
or r15, 2
jmp 0x1400427df
mov rax, qword [rdx + 0x20]
test rax, rax
je 0x140042b01
mov rcx, qword [r12]
mov rax, qword [rcx + rax*8 - 8]
mov r14, rax
lock inc qword [rax]
mov r12b, 1
jle 0x140042b01
mov rcx, rdx
call fcn.140087c34
test r12b, r12b
je 0x1400427c6
mov qword [rsp + 0xb8], r13
mov qword [rsp + 0x168], r14
lea r12, [rsp + 0x100]
mov rcx, r12
mov rdx, qword [rsp + 0xb0]
mov r8d, 0x48000022
call fcn.1400350d3
cmp dword [r12], 0
je 0x1400427ed
xor r12d, r12d
cmp r12, 0xc
je 0x140042a34
lea rax, [0x1400d25f0]
mov r8d, dword [r12 + rax]
lea rcx, [rsp + 0x190]
mov rdx, qword [rsp + 0xb0]
call fcn.1400350d3
add r12, 4
cmp dword [rsp + 0x190], 0
jne 0x14004277a
mov r13, qword [rsp + 0x198]
cmp r13, qword [rsp + 0xb0]
je 0x14004277a
jmp 0x1400427f5
push 2
pop r12
jmp 0x14004290c
call fcn.14007612c
mov r15, rax
mov rdi, qword [rsp + 0xa0]
lea rcx, [rsi + 0x40]
call fcn.14003a8bf
jmp 0x14004297a
mov r13, qword [rsp + 0x108]
mov ecx, pe_nt_image_headers64
call fcn.1400341e7
mov rcx, rax
push 1
pop rax
mov qword [rcx], rax
mov qword [rcx + 8], rax
and qword [rcx + 0x10], 0
mov byte [rcx + 0x18], 0
and dword [rcx + 0x20], 0
lea rdx, [rcx + 0x10]
mov qword [rcx + 0x28], r14
xorps xmm0, xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movups xmmword [rcx + 0x50], xmm0
mov qword [rcx + 0x60], r13
movups xmmword [rcx + 0x68], xmm0
mov qword [rsp + 0xe8], rcx
and word [rcx + 0x78], 0
lea r14, [rsp + 0x190]
mov rcx, r14
call fcn.140019b8e
cmp qword [r14], 0
jne 0x140042b01
mov rcx, qword [rsp + 0x198]
mov dword [rcx + 0x60], 0x19d
mov rax, qword [rsp + 0xc0]
mov qword [rcx + 0x58], rax
call fcn.140087c34
mov rax, qword [rsp + 0xb8]
lock inc qword [rax]
push 2
pop r12
mov r13, qword [rsp + 0xf0]
jle 0x140042b01
mov rdx, qword [rsp + 0xe8]
lock inc qword [rdx]
jle 0x140042b01
mov rax, qword [rsp + 0xb8]
lea r14, [rax + 0x10]
mov qword [rsp + 0x190], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x1a0], rax
mov byte [rsp + 0x1a8], 3
mov qword [rsp + 0x198], rdx
mov rcx, r14
call fcn.140034ea8
mov rcx, r14
call fcn.140034eeb
test rax, rax
je 0x140042a56
mov r14, rax
lea rcx, [rsp + 0x190]
call fcn.140035140
mov r15, r14
mov rdi, qword [rsp + 0xa0]
add rbx, 0x28
mov r14, qword [rsp + 0xf8]
mov rcx, r14
call fcn.14006b9de
mov rcx, rbx
mov rdx, qword [rsp + 0xc0]
call fcn.1400796b9
mov rcx, r14
call fcn.14006b9cf
lea rcx, [rsp + 0x160]
call fcn.140076f3c
lea rcx, [rsp + 0x180]
call fcn.1400768be
lea rcx, [rsp + 0x170]
call fcn.14007a953
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa8]
mov rax, qword [rsp + 0x290]
mov qword [rsp + 0x250], rax
movaps xmm0, xmmword [rsp + 0x280]
movaps xmmword [rsp + 0x240], xmm0
mov byte [rbx], 1
cmp r12, 3
jne 0x1400429ae
mov qword [r14], 3
mov al, 3
jmp 0x1400429f8
mov rax, qword [rsp + 0x250]
mov qword [rsp + 0x270], rax
movaps xmm0, xmmword [rsp + 0x240]
movaps xmmword [rsp + 0x260], xmm0
mov rcx, rdi
call fcn.1400421c2
mov qword [r14], r12
mov qword [r14 + 8], r15
movaps xmm0, xmmword [rsp + 0x260]
movups xmmword [r14 + 0x10], xmm0
mov rax, qword [rsp + 0x270]
mov qword [r14 + 0x20], rax
mov al, 1
mov byte [rsi + 0x78], al
lea rsp, [rbp + 0x238]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov r12, qword [rsi + 0x40]
mov r15, qword [rsi + 0x48]
mov rax, qword [rsi + 0x60]
mov qword [rsp + 0x290], rax
movups xmm0, xmmword [rsi + 0x50]
movaps xmmword [rsp + 0x280], xmm0
jmp 0x14004297a
mov r15d, dword [rsp + 0x104]
shl r15, 0x20
or r15, 2
lea rcx, [rsp + 0x168]
call fcn.1400340f7
jmp 0x14004260b
lea rax, [rsp + 0x1a0]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x2a0], xmm0
push 0x20
pop rcx
call fcn.1400341e7
mov rbx, rax
mov rax, qword [rsp + 0xb8]
mov qword [rbx], rax
mov rax, qword [rsp + 0xe8]
mov qword [rbx + 8], rax
movaps xmm0, xmmword [rsp + 0x2a0]
movups xmmword [rbx + 0x10], xmm0
xor ecx, ecx
call fcn.140035175
xor ecx, ecx
call fcn.1400341a3
mov rcx, qword [rsp + 0x158]
cmp rcx, 2
jne 0x140042ac8
mov r14, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xa0]
jmp 0x140042972
lea rax, [rsi + 0x40]
mov qword [rsi + 0x40], rcx
mov qword [rsi + 0x48], r15
mov qword [rsi + 0x50], rdi
mov rcx, qword [rsp + 0xb0]
mov qword [rsi + 0x58], rcx
mov qword [rsi + 0x60], rbx
mov qword [rsi + 0x68], rax
mov r14, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0xa8]
jmp 0x140042243
ud2