Function at 0x14014b2f0
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
mov word [rsp + 0x20], r9w
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0x870
mov qword [rsp + 0x808], 0xfffffffffffffffe
mov rax, qword [0x1402bd5c0]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x888]
cmp dword [rax + 0xc], 0
jge 0x14014b34b
mov eax, 1
jmp 0x14014bbe8
mov rax, qword [rsp + 0x888]
cmp dword [rax + 0xc], 0x40
jl 0x14014b3cc
mov rdx, qword [rsp + 0x888]
add rdx, 0xb0
lea rcx, [rsp + 0x7d8]
call fcn.14000f540
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0x810]
mov qword [rsp + 0x818], rax
mov rcx, qword [rsp + 0x818]
call fcn.14000f5d0
mov r8, rax
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax + 0xc]
lea rdx, str._ERROR__ip__s_targetid__d_is_invalid
xor ecx, ecx
call fcn.1400de020
nop
lea rcx, [rsp + 0x7d8]
call fcn.140002dd0
xor eax, eax
jmp 0x14014bbe8
mov qword [rsp + 0x3a0], 0
mov rcx, qword [rsp + 0x880]
add rcx, 0x508
call fcn.14000f140
mov rcx, qword [rsp + 0x880]
add rcx, 0x4d0
lea r8, [rsp + 0x3a0]
mov rax, qword [rsp + 0x888]
mov edx, dword [rax]
call fcn.14001e1f0
test eax, eax
je 0x14014b427
mov rax, qword [rsp + 0x3a0]
cmp dword [rax + 0x84], 0
jne 0x14014b44f
mov rcx, qword [rsp + 0x880]
add rcx, 0x508
mov rax, qword [rsp + 0x880]
mov rax, qword [rax + 0x508]
call qword [rax + 0x28]
xor eax, eax
jmp 0x14014bbe8
mov rcx, qword [rsp + 0x880]
add rcx, 0x508
mov rax, qword [rsp + 0x880]
mov rax, qword [rax + 0x508]
call qword [rax + 0x28]
mov rcx, qword [rsp + 0x3a0]
call fcn.14001cd90
cmp dword [rsp + 0x890], 2
je 0x14014b588
cmp dword [rsp + 0x890], 4
je 0x14014b588
mov rax, qword [rsp + 0x888]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax + 0xc]
mov r8, qword [rsp + 0x3a0]
mov r8, qword [r8 + 0x48]
lea rdx, str.Reinstatement_iSCSI_connection__s_targetid__d_connectionid__d
xor ecx, ecx
call fcn.1400de020
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140140ff0
mov dword [rsp + 0x3a8], 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.14001cd70
test eax, eax
jne 0x14014b56f
mov rax, qword [rsp + 0x888]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax + 0xc]
mov r8, qword [rsp + 0x3a0]
mov r8, qword [r8 + 0x48]
lea rdx, [0x14024a9a0]
xor ecx, ecx
call fcn.1400de020
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140145b30
mov dword [rsp + 0x3a8], eax
mov rcx, qword [rsp + 0x3a0]
call fcn.14001cdc0
mov eax, dword [rsp + 0x3a8]
jmp 0x14014bbe8
mov dword [rsp + 0x34], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r8, [rsp + 0x34]
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x888]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x7e0]
call fcn.14000f540
mov qword [rsp + 0x820], rax
mov rax, qword [rsp + 0x820]
mov qword [rsp + 0x828], rax
mov rcx, qword [rsp + 0x828]
call fcn.14000f5d0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002050
nop
lea rcx, [rsp + 0x7e0]
call fcn.140002dd0
mov rax, qword [rsp + 0x888]
movzx ecx, word [rax + 0x18]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax + 0xc]
mov r8, qword [rsp + 0x3a0]
mov r8, qword [r8 + 0x48]
lea rdx, str.New_iSCSI_connection__s_targetid__d_connectionid__d_serverip__s
xor ecx, ecx
call fcn.1400de020
mov rcx, qword [rsp + 0x888]
movabs rax, 0x400027230000
cmp qword [rcx + 0x48], rax
jne 0x14014b676
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11d, eax
mov rax, qword [rsp + 0x3a0]
mov dword [rax + 0xe0], r11d
lea rcx, [rsp + 0x60]
call fcn.1401e0790
nop
mov rax, qword [rsp + 0x888]
mov eax, dword [rax]
mov dword [rsp + 0x1f8], eax
lea rcx, [rsp + 0x60]
call fcn.1401e5810
test eax, eax
je 0x14014ba5c
lea rcx, [rsp + 0x2f0]
call fcn.140050200
mov rcx, rax
call fcn.1400aac5c
test eax, eax
je 0x14014ba5c
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x3b0]
call fcn.140001430
nop
mov dword [rsp + 0x3c0], 0
lea rcx, [rsp + 0x3b8]
call fcn.140002d10
nop
lea r9, [rsp + 0x3c0]
lea r8, [0x140248f8c]
lea rdx, [rsp + 0x7e8]
lea rcx, [rsp + 0x3b0]
call fcn.140006620
mov qword [rsp + 0x830], rax
mov rax, qword [rsp + 0x830]
mov qword [rsp + 0x838], rax
mov rdx, qword [rsp + 0x838]
lea rcx, [rsp + 0x3b8]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x7e8]
call fcn.140007060
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3b8]
call fcn.14001b000
movzx eax, al
test eax, eax
je 0x14014ba41
cmp dword [rsp + 0x3c0], 0xffffffff
je 0x14014ba41
lea r9, [rsp + 0x3c0]
lea r8, [0x140248f9c]
lea rdx, [rsp + 0x7f0]
lea rcx, [rsp + 0x3b0]
call fcn.140006620
mov qword [rsp + 0x840], rax
mov rax, qword [rsp + 0x840]
mov qword [rsp + 0x848], rax
mov rdx, qword [rsp + 0x848]
lea rcx, [rsp + 0x3b8]
call fcn.140002ce0
nop
lea rcx, [rsp + 0x7f0]
call fcn.140007060
lea rcx, [rsp + 0x3b8]
call fcn.1400019a0
test eax, eax
jle 0x14014ba41
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3b8]
call fcn.14001d080
movzx eax, al
test eax, eax
je 0x14014ba41
mov rcx, qword [rsp + 0x3a0]
add rcx, 0x100
lea rdx, [rsp + 0x3b8]
call fcn.140002ce0
mov rax, qword [rsp + 0x3a0]
cmp qword [rax + 0x88], 0xffffffffffffffff
je 0x14014b861
mov rcx, qword [rsp + 0x3a0]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0x3a0]
mov qword [r11 + 0x88], 0xffffffffffffffff
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov r11, rax
mov rax, qword [rsp + 0x3a0]
mov qword [rax + 0x88], r11
mov rcx, qword [rsp + 0x3a0]
add rcx, 0x100
call fcn.140050200
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0x3e8
mov r8, rax
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
mov rcx, qword [rsp + 0x880]
call fcn.1400db240
test eax, eax
je 0x14014ba19
lea rcx, [rsp + 0x7d0]
call fcn.140002d10
nop
mov rax, qword [rsp + 0x3a0]
mov rax, qword [rax + 0x108]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax]
mov r8, qword [rsp + 0x3a0]
mov r8, qword [r8 + 0x100]
lea rdx, str.SyncConnect___HTTP_1.0_r_nHost:__s_r_nUserID:__d_r_nComputerName:__s_r_n_r_n
lea rcx, [rsp + 0x7d0]
call fcn.140002ba0
lea rcx, [rsp + 0x7d0]
call fcn.140050200
mov rdx, rax
lea rcx, [rsp + 0x7f8]
call fcn.140002d40
mov qword [rsp + 0x850], rax
mov rax, qword [rsp + 0x850]
mov qword [rsp + 0x858], rax
lea rcx, [rsp + 0x7d0]
call fcn.1400019a0
movsxd rbx, eax
mov rcx, qword [rsp + 0x858]
call fcn.140002df0
mov r9, rbx
mov r8, rax
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
lea rcx, [0x1403c66e0]
call fcn.1400dad90
nop
lea rcx, [rsp + 0x7f8]
call fcn.140002dd0
lea rdx, str.send_SyncConnect
xor ecx, ecx
call fcn.1400de020
mov r9d, 0x400
lea r8, [rsp + 0x3d0]
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
lea rcx, [0x1403c66e0]
call fcn.1400da6e0
mov r9d, 0x400
lea r8, [rsp + 0x3d0]
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
lea rcx, [0x1403c66e0]
call fcn.1400da6e0
nop
lea rcx, [rsp + 0x7d0]
call fcn.140007060
jmp 0x14014ba41
mov rcx, qword [rsp + 0x3a0]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.WS2_32.dll_closesocket]
mov r11, qword [rsp + 0x3a0]
mov qword [r11 + 0x88], 0xffffffffffffffff
lea rcx, [rsp + 0x3b8]
call fcn.140007060
nop
lea rcx, [rsp + 0x3b0]
call fcn.140007060
mov ecx, 4
call fcn.14013b780
test eax, eax
jne 0x14014ba7e
mov rax, qword [rsp + 0x3a0]
mov dword [rax + 0x90], 1
jmp 0x14014ba90
mov rax, qword [rsp + 0x3a0]
mov dword [rax + 0x90], 0
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140140ff0
mov rax, qword [rsp + 0x3a0]
cmp dword [rax + 0x80], 0
jne 0x14014baf0
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140140440
mov r11, qword [rsp + 0x3a0]
mov qword [r11 + 0xd0], 0
mov rax, qword [rsp + 0x888]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax + 0xc]
mov r8, qword [rsp + 0x3a0]
mov r8, qword [r8 + 0x48]
lea rdx, str.New_iSCSI_connection_Open__s_targetid__d_connectionid__d
xor ecx, ecx
call fcn.1400de020
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140145b30
test eax, eax
jne 0x14014bbb4
mov rax, qword [rsp + 0x888]
movzx eax, word [rax + 0x18]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x888]
mov r9d, dword [rax + 0xc]
mov r8, qword [rsp + 0x3a0]
mov r8, qword [r8 + 0x48]
lea rdx, str.New_iSCSI_connection_Open__s_targetid__d_connectionid__d_False
xor ecx, ecx
call fcn.1400de020
mov rcx, qword [rsp + 0x3a0]
call fcn.14001cdc0
mov dword [rsp + 0x800], 0
lea rcx, [rsp + 0x60]
call fcn.140005e30
nop
lea rcx, [rsp + 0x38]
call fcn.140007060
mov eax, dword [rsp + 0x800]
jmp 0x14014bbe8
mov rcx, qword [rsp + 0x3a0]
call fcn.14001cdc0
mov dword [rsp + 0x804], 1
lea rcx, [rsp + 0x60]
call fcn.140005e30
nop
lea rcx, [rsp + 0x38]
call fcn.140007060
mov eax, dword [rsp + 0x804]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400a9820
add rsp, 0x870
pop rbx
ret