Function at 0x1400523d0
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r15
sub rsp, 0x210
mov rax, qword [0x1409b0280]
xor rax, rsp
mov qword [rsp + 0x200], rax
movzx esi, r8w
mov rbx, rdx
mov rdi, rcx
call fcn.1400b0500
mov rax, qword [0x1409f4538]
mov ecx, 4
test rax, rax
je 0x140052414
call rax
jmp 0x140052419
call fcn.140175580
mov rcx, rax
test rax, rax
je 0x140052436
mov word [rsp + 0x40], 0x403
movzx eax, word [rsp + 0x40]
mov word [rcx], ax
mov word [rcx + 2], 0x101
call fcn.1400af850
mov qword [rdi + 0x10], rax
lea rdx, [0x1409f4568]
cmp qword [0x1409f4580], 0xf
cmova rdx, qword [0x1409f4568]
mov ebp, 1
test rax, rax
je 0x14005246d
test byte [rax + 0xa1], 2
je 0x14005246d
xor ecx, ecx
jmp 0x14005246f
mov ecx, ebp
mov dword [rsp + 0x30], ecx
mov r8d, dword [0x1409f4578]
mov rcx, rax
call fcn.1400b0720
cmp eax, ebp
jne 0x140052620
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1400524b0
movzx eax, byte [rcx + 0xa1]
and al, 0xfd
or al, bpl
mov byte [rcx + 0xa1], al
mov qword [rcx + 0xc0], 0
mov ecx, 0x202
lea rdx, [rsp + 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x140052620
lea r8d, [rax + 6]
mov edx, ebp
mov r15d, 2
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_socket]
mov dword [rdi], eax
cmp eax, 0xffffffff
je 0x140052620
mov word [rsp + 0x50], r15w
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x54], eax
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x52], ax
movsxd rcx, dword [rdi]
lea r8d, [r15 + 0xe]
lea rdx, [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x140052620
mov rsi, qword [rdi + 0x10]
test rsi, rsi
jne 0x140052535
mov qword [rdi + 8], rsi
jmp 0x1400525c0
mov rax, qword [0x1409f4538]
mov ecx, 0x4f0
test rax, rax
je 0x14005254a
call rax
jmp 0x14005254f
call fcn.140175580
mov rbx, rax
test rax, rax
je 0x140052595
mov rdx, rsi
mov rcx, rax
call fcn.1400b6af0
test eax, eax
jns 0x140052595
mov rcx, qword [rbx]
test rcx, rcx
je 0x140052573
call fcn.1400b5860
mov rcx, rbx
call fcn.1400b70c0
mov rax, qword [0x1409f4530]
mov rcx, rbx
test rax, rax
je 0x14005258e
call rax
jmp 0x140052593
call fcn.14017007c
xor ebx, ebx
mov qword [rdi + 8], rbx
mov ecx, dword [rdi]
test rbx, rbx
je 0x1400525c0
lea rax, [rbx + 0x2f4]
mov dword [rax], ecx
mov qword [rbx + 0x80], rax
lea rax, [rbx + 0x2f8]
mov dword [rax], ecx
mov qword [rbx + 0x88], rax
mov rcx, qword [rdi + 8]
call fcn.1400b09e0
cmp eax, ebp
jne 0x140052620
xchg byte [rdi + 4], bpl
add rdi, 0x2e8
mov qword [rsp + 0x48], rdi
mov rcx, rdi
call fcn.140159b6c
test eax, eax
jne 0x14005264e
mov eax, dword [rdi + 0x4c]
cmp eax, 0x7fffffff
je 0x14005263e
mov rbx, qword [rdi + 0x50]
mov rsi, qword [rdi + 0x58]
cmp rbx, rsi
je 0x140052618
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x14005260f
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
add rbx, 0x40
cmp rbx, rsi
jne 0x140052600
mov rcx, rdi
call fcn.140159b74
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.14015a1f0
add rsp, 0x210
pop r15
pop rdi
pop rsi
pop rbp
pop rbx
ret
dec eax
mov dword [rdi + 0x4c], eax
mov ecx, 6
call fcn.140159b10
int3
mov ecx, 5
call fcn.140159b10
int3