Function at 0x140200480
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xf8
mov r14, rcx
lea rdi, str.127.0.0.1:34254could_not_resolve_to_any_addresses
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x30]
call fcn.140042c80
mov rbx, rax
test bl, 1
je 0x14020054e
mov rsi, qword [rsp + 0x38]
test rsi, rsi
je 0x14020051c
mov rax, qword [rsp + 0x30]
lea rcx, [rsi - 1]
movzx edx, byte [rax]
inc rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rcx
cmp dl, 0x3a
jne 0x14020051c
mov dword [rsp + 0x88], 0xa
mov qword [rsp + 0x78], 0
mov byte [rsp + 0x8c], 1
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x78]
call fcn.140043560
cmp ax, 1
jne 0x14020051e
jmp 0x140200528
xor eax, eax
mov qword [rsp + 0x38], rsi
test ax, ax
je 0x14020054e
movabs rax, 0xffffffff00
and rbx, rax
shr rbx, 8
movzx eax, dx
shl rax, 0x30
shl rbx, 0x10
or rbx, rax
mov eax, 1
jmp 0x140200552
xor ebx, ebx
xor eax, eax
or rax, rbx
test ax, ax
je 0x14020083c
movzx eax, ax
cmp eax, 1
jne 0x14020084a
cmp qword [rsp + 0x38], 0
jne 0x14020084a
mov qword [rsp + 0x58], r14
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
movzx eax, byte [0x14036c240]
mov rcx, qword [0x14036c198]
test rcx, rcx
jne 0x1402005c1
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x140200ab0
mov rcx, rax
mov qword [0x14036c198], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x140200ab0
mov word [rax], 0
mov rdx, rbx
shr rdx, 0x10
and rdx, 0xffffffffffffff00
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
or rcx, rdx
shr rbx, 0x30
mov word [rax + 6], bx
mov dword [rax + 2], ecx
mov rcx, qword [rsp + 0xa8]
mov qword [rax + 8], rcx
mov ecx, dword [rsp + 0xb0]
mov dword [rax + 0x10], ecx
mov dword [rax + 0x14], 0
mov rcx, rax
add rcx, 0x20
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0xc0], 1
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0xd0], rcx
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x68], rax
mov r13, qword [rsp + 0xc8]
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
cmp r13, rax
je 0x140200920
xor ebx, ebx
nop dword [rax]
movzx edi, word [r13]
cmp di, 2
je 0x14020095e
mov esi, dword [r13 + 0x14]
mov r12d, dword [r13 + 0x18]
movzx r14d, word [r13 + 0x1c]
movzx eax, word [r13 + 0x12]
mov word [rsp + 0x40], ax
movups xmm0, xmmword [r13 + 2]
movaps xmmword [rsp + 0x30], xmm0
mov rax, qword [0x14036c1a0]
cmp rax, 3
je 0x1402006c2
call fcn.140226d60
mov ebp, 2
test di, di
je 0x1402006d1
mov ebp, 0x17
mov dword [rsp + 0x28], 0x81
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140200720
test di, di
je 0x1402007a0
mov r8d, 0x1c
mov ax, 0x17
movups xmm0, xmmword [rsp + 0x32]
jmp 0x1402007b7
mov dword [rsp + 0x74], r12d
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2739
je 0x14020073f
mov r12d, eax
cmp eax, 0x2726
jne 0x140200801
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0
mov ecx, ebp
mov edx, 2
xor r8d, r8d
xor r9d, r9d
call sub.ws2_32.dll_WSASocketW
cmp rax, 0xffffffffffffffff
je 0x14020082b
mov r15, rax
mov rcx, rax
mov edx, 1
xor r8d, r8d
call sub.kernel32.dll_SetHandleInformation
test eax, eax
je 0x140200835
mov r12d, dword [rsp + 0x74]
test di, di
jne 0x140200705
nop word cs:[rax + rax]
movzx r14d, word [rsp + 0x34]
mov esi, dword [rsp + 0x30]
mov r8d, 0x10
mov ax, 2
xorps xmm0, xmm0
rol r14w, 8
mov word [rsp + 0x78], ax
mov word [rsp + 0x7a], r14w
mov dword [rsp + 0x7c], esi
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x90], r12d
mov rcx, r15
lea rdx, [rsp + 0x78]
call sub.ws2_32.dll_bind
cmp eax, 0xffffffff
jne 0x140200a21
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
mov rcx, r15
call fcn.14027ef5c
shl r12, 0x20
or r12, 2
mov rcx, rbx
call fcn.140200b00
add r13, 0x20
mov rbx, r12
cmp r13, qword [rsp + 0xd8]
jne 0x140200680
jmp 0x140200923
call sub.ws2_32.dll_WSAGetLastError
mov r12d, eax
jmp 0x140200801
call sub.kernel32.dll_GetLastError
jmp 0x1402007f6
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], 0xf
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], 0xf
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x98], 1
movabs rax, 0x3a0000003a
mov qword [rsp + 0xa0], rax
mov bl, 0x3a
mov r8d, 0xf
jmp 0x140200896
cmp r8, 0xf
ja 0x1402008fa
mov cl, 0x3a
mov rdx, rdi
call fcn.1400462f0
cmp rax, 1
jne 0x1402008fa
mov r8, rdx
cmp rdx, 0xf
jae 0x140200890
cmp byte [r8 + rdi], bl
jne 0x140200890
lea rax, [r8 + 1]
lea rcx, str.0:0_
cmp rax, 0xf
je 0x140200901
lea r9, [r8 + rdi]
inc r9
movzx edx, byte [r9]
mov r10d, 0xf
cmp edx, 0x2d
je 0x14020096b
cmp edx, 0x2b
jne 0x140200971
cmp rax, 0xe
je 0x140200901
inc r9
mov r10d, 0xe
jmp 0x140200971
lea rcx, str.invalid_socket_address
mov qword [r14 + 8], rcx
mov qword [r14], 1
add rsp, 0xf8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor r12d, r12d
cmp qword [rsp + 0x68], 0
je 0x14020093e
mov rcx, qword [0x14036c198]
xor edx, edx
mov r8, qword [rsp + 0x60]
call fcn.14027f164
test r12, r12
lea rax, [0x140300828]
cmovne rax, r12
mov rcx, qword [rsp + 0x58]
mov qword [rcx + 8], rax
mov qword [rcx], 1
jmp 0x14020090c
mov r12, rbx
cmp qword [rsp + 0x68], 0
jne 0x14020092b
jmp 0x14020093e
cmp rax, 0xe
je 0x140200901
sub r10, rax
cmp r10, 5
jae 0x1402009dd
xor edx, edx
xor eax, eax
nop
movzx r11d, byte [r9 + rdx]
add r11d, 0xffffffd0
cmp r11d, 9
ja 0x140200901
add eax, eax
lea eax, [rax + rax*4]
add eax, r11d
inc rdx
cmp r10, rdx
jne 0x140200980
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x80], r8
mov word [rsp + 0x88], ax
lea rcx, [rsp + 0x30]
lea rdx, [rsp + 0x78]
call fcn.140226670
cmp qword [rsp + 0x30], 0
je 0x140200a59
mov rcx, qword [rsp + 0x38]
jmp 0x140200901
xor r11d, r11d
mov si, 0xa
xor eax, eax
nop word cs:[rax + rax]
cmp r10, r11
je 0x1402009a3
movzx ebx, byte [r9 + r11]
mul si
seto dl
add ebx, 0xffffffd0
cmp ebx, 9
ja 0x140200901
test dl, dl
jne 0x140200901
inc r11
add ax, bx
jae 0x1402009f0
jmp 0x140200901
mov rax, qword [rsp + 0x58]
mov qword [rax + 8], r15
mov qword [rax], 0
cmp qword [rsp + 0x68], 0
je 0x140200a4c
mov rcx, qword [0x14036c198]
xor edx, edx
mov r8, qword [rsp + 0x60]
call fcn.14027f164
mov rcx, rbx
call fcn.140200b00
jmp 0x14020090c
mov qword [rsp + 0x58], r14
mov rax, qword [rsp + 0x38]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rsp + 0xe8], xmm0
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0xb8]
lea rdx, [rsp + 0xe0]
call fcn.140226860
mov rax, qword [rsp + 0xb8]
test rax, rax
jne 0x140200648
mov rcx, qword [rsp + 0xc0]
mov r14, qword [rsp + 0x58]
jmp 0x140200901
mov ecx, 4
mov edx, 0x20
call fcn.140004360
ud2