Function at 0x140148ca0
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 [0x1402aa5c0]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x888]
cmp dword [rax + 0xc], 0
jge 0x140148cfb
mov eax, 1
jmp 0x140149598
mov rax, qword [rsp + 0x888]
cmp dword [rax + 0xc], 0x40
jl 0x140148d7c
mov rdx, qword [rsp + 0x888]
add rdx, 0xb0
lea rcx, [rsp + 0x7d8]
call fcn.14000e700
mov qword [rsp + 0x810], rax
mov rax, qword [rsp + 0x810]
mov qword [rsp + 0x818], rax
mov rcx, qword [rsp + 0x818]
call fcn.1400118c0
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.1400dcf70
nop
lea rcx, [rsp + 0x7d8]
call fcn.140002ea0
xor eax, eax
jmp 0x140149598
mov qword [rsp + 0x3a0], 0
mov rcx, qword [rsp + 0x880]
add rcx, 0x508
call fcn.14000e350
mov rcx, qword [rsp + 0x880]
add rcx, 0x4d0
lea r8, [rsp + 0x3a0]
mov rax, qword [rsp + 0x888]
mov edx, dword [rax]
call fcn.14001d030
test eax, eax
je 0x140148dd7
mov rax, qword [rsp + 0x3a0]
cmp dword [rax + 0x84], 0
jne 0x140148dff
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 0x140149598
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.14001b910
cmp dword [rsp + 0x890], 2
je 0x140148f38
cmp dword [rsp + 0x890], 4
je 0x140148f38
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.1400dcf70
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.14013f160
mov dword [rsp + 0x3a8], 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.14001b8f0
test eax, eax
jne 0x140148f1f
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, [0x140239fe0]
xor ecx, ecx
call fcn.1400dcf70
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140143ca0
mov dword [rsp + 0x3a8], eax
mov rcx, qword [rsp + 0x3a0]
call fcn.14001b940
mov eax, dword [rsp + 0x3a8]
jmp 0x140149598
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.WSOCK32.dll_getsockname]
mov ecx, dword [rsp + 0x4c]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov rdx, rax
lea rcx, [rsp + 0x7e0]
call fcn.14000e700
mov qword [rsp + 0x820], rax
mov rax, qword [rsp + 0x820]
mov qword [rsp + 0x828], rax
mov rcx, qword [rsp + 0x828]
call fcn.1400118c0
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002100
nop
lea rcx, [rsp + 0x7e0]
call fcn.140002ea0
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.1400dcf70
mov rcx, qword [rsp + 0x888]
movabs rax, 0x400027230000
cmp qword [rcx + 0x48], rax
jne 0x140149026
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.1401d19d0
nop
mov rax, qword [rsp + 0x888]
mov eax, dword [rax]
mov dword [rsp + 0x1f8], eax
lea rcx, [rsp + 0x60]
call fcn.1401d6a40
test eax, eax
je 0x14014940c
lea rcx, [rsp + 0x2f0]
call fcn.14000f8f0
mov rcx, rax
call fcn.1400a99f8
test eax, eax
je 0x14014940c
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x3b0]
call fcn.140001430
nop
mov dword [rsp + 0x3c0], 0
lea rcx, [rsp + 0x3b8]
call fcn.140002de0
nop
lea r9, [rsp + 0x3c0]
lea r8, [0x14023848c]
lea rdx, [rsp + 0x7e8]
lea rcx, [rsp + 0x3b0]
call fcn.1400065a0
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.140002db0
nop
lea rcx, [rsp + 0x7e8]
call fcn.140001490
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3b8]
call fcn.140019a90
movzx eax, al
test eax, eax
je 0x1401493f1
cmp dword [rsp + 0x3c0], 0xffffffff
je 0x1401493f1
lea r9, [rsp + 0x3c0]
lea r8, [0x14023849c]
lea rdx, [rsp + 0x7f0]
lea rcx, [rsp + 0x3b0]
call fcn.1400065a0
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.140002db0
nop
lea rcx, [rsp + 0x7f0]
call fcn.140001490
lea rcx, [rsp + 0x3b8]
call fcn.140001a40
test eax, eax
jle 0x1401493f1
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3b8]
call fcn.14001bc00
movzx eax, al
test eax, eax
je 0x1401493f1
mov rcx, qword [rsp + 0x3a0]
add rcx, 0x100
lea rdx, [rsp + 0x3b8]
call fcn.140002db0
mov rax, qword [rsp + 0x3a0]
cmp qword [rax + 0x88], 0xffffffffffffffff
je 0x140149211
mov rcx, qword [rsp + 0x3a0]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.WSOCK32.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.WSOCK32.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.14000f8f0
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.1400da1f0
test eax, eax
je 0x1401493c9
lea rcx, [rsp + 0x7d0]
call fcn.140002de0
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.140002c70
lea rcx, [rsp + 0x7d0]
call fcn.14000f8f0
mov rdx, rax
lea rcx, [rsp + 0x7f8]
call fcn.140002e10
mov qword [rsp + 0x850], rax
mov rax, qword [rsp + 0x850]
mov qword [rsp + 0x858], rax
lea rcx, [rsp + 0x7d0]
call fcn.140001a40
movsxd rbx, eax
mov rcx, qword [rsp + 0x858]
call fcn.140002ec0
mov r9, rbx
mov r8, rax
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
lea rcx, [0x1403b36c0]
call fcn.1400d9d40
nop
lea rcx, [rsp + 0x7f8]
call fcn.140002ea0
lea rdx, str.send_SyncConnect
xor ecx, ecx
call fcn.1400dcf70
mov r9d, 0x400
lea r8, [rsp + 0x3d0]
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
lea rcx, [0x1403b36c0]
call fcn.1400d9690
mov r9d, 0x400
lea r8, [rsp + 0x3d0]
mov rdx, qword [rsp + 0x3a0]
mov rdx, qword [rdx + 0x88]
lea rcx, [0x1403b36c0]
call fcn.1400d9690
nop
lea rcx, [rsp + 0x7d0]
call fcn.140001490
jmp 0x1401493f1
mov rcx, qword [rsp + 0x3a0]
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov r11, qword [rsp + 0x3a0]
mov qword [r11 + 0x88], 0xffffffffffffffff
lea rcx, [rsp + 0x3b8]
call fcn.140001490
nop
lea rcx, [rsp + 0x3b0]
call fcn.140001490
mov ecx, 4
call fcn.1401398f0
test eax, eax
jne 0x14014942e
mov rax, qword [rsp + 0x3a0]
mov dword [rax + 0x90], 1
jmp 0x140149440
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.14013f160
mov rax, qword [rsp + 0x3a0]
cmp dword [rax + 0x80], 0
jne 0x1401494a0
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.14013e5b0
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.1400dcf70
mov r8d, 1
mov rax, qword [rsp + 0x888]
mov edx, dword [rax + 0xc]
mov rcx, qword [rsp + 0x3a0]
call fcn.140143ca0
test eax, eax
jne 0x140149564
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.1400dcf70
mov rcx, qword [rsp + 0x3a0]
call fcn.14001b940
mov dword [rsp + 0x800], 0
lea rcx, [rsp + 0x60]
call fcn.140014ec0
nop
lea rcx, [rsp + 0x38]
call fcn.140001490
mov eax, dword [rsp + 0x800]
jmp 0x140149598
mov rcx, qword [rsp + 0x3a0]
call fcn.14001b940
mov dword [rsp + 0x804], 1
lea rcx, [rsp + 0x60]
call fcn.140014ec0
nop
lea rcx, [rsp + 0x38]
call fcn.140001490
mov eax, dword [rsp + 0x804]
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1400a8790
add rsp, 0x870
pop rbx
ret