Function at 0x140003e20
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0xc18
mov rax, qword [0x14007b960]
xor rax, rsp
mov qword [rsp + 0xc00], rax
mov rdi, qword [rcx + 0x10]
xor r14d, r14d
mov r12d, r8d
cmp qword [rcx + 8], rdi
mov qword [rsp + 0x128], rdx
mov r13, rcx
mov qword [rsp + 0x150], rcx
mov ebp, r14d
mov dword [rsp + 0x90], r14d
jbe 0x140003e76
call fcn.14003f440
mov rbx, qword [r13 + 8]
cmp rbx, qword [r13 + 0x10]
jbe 0x140003e85
call fcn.14003f440
cmp rbx, rdi
mov qword [rsp + 0xc58], rsi
je 0x140003ef5
mov rbp, qword [r13 + 0x10]
movabs rax, 0x8208208208208209
mov rcx, rbp
sub rcx, rdi
imul rcx
lea rsi, [rcx + rdx]
sar rsi, 9
mov rax, rsi
shr rax, 0x3f
add rsi, rax
imul rsi, rsi, 0x3f0
add rsi, rbx
cmp rdi, rbp
je 0x140003eee
sub rbx, rdi
nop
lea rcx, [rbx + rdi]
mov rdx, rdi
mov r8d, 0x3f0
call fcn.140042a20
add rdi, 0x3f0
cmp rdi, rbp
jne 0x140003ed0
mov qword [r13 + 0x10], rsi
mov ebp, r14d
xor eax, eax
lea r9, [rsp + 0x15c]
lea r8, [rsp + 0x120]
mov dword [rsp + 0x370], eax
mov dword [rsp + 0x374], eax
mov dword [rsp + 0x378], eax
mov dword [rsp + 0x37c], eax
mov dword [rsp + 0x380], eax
mov dword [rsp + reloc.wsnmp32.dll_SnmpGetLastError], eax
mov dword [rsp + reloc.wsnmp32.dll_Ordinal_904], eax
lea rax, [rsp + 0x118]
lea rdx, [rsp + 0x158]
lea rcx, [rsp + 0x11c]
mov qword [rsp + 0x20], rax
call sub.wsnmp32.dll_SnmpStrToEntity
cmp eax, 1
je 0x140003f6e
xor ecx, ecx
call sub.wsnmp32.dll_Ordinal_999
or eax, 0xffffffff
jmp 0x140004971
lea r8, [0x140003450]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call sub.wsnmp32.dll_SnmpSetPort
test rax, rax
mov rsi, rax
mov qword [rsp + 0x138], rax
jne 0x140003fa0
xor ecx, ecx
call sub.wsnmp32.dll_Ordinal_999
or ebp, 0xffffffff
jmp 0x14000496a
xor r8d, r8d
xor edx, edx
mov rcx, rax
call sub.wsnmp32.dll_Ordinal_600
test rax, rax
mov qword [rsp + 0x98], rax
jne 0x140003fca
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_999
or ebp, 0xffffffff
jmp 0x140004962
lea rdx, [rsp + 0xa8]
lea rcx, str.1.3.6.1.2.1.1.1.0
call sub.wsnmp32.dll_Ordinal_903
test eax, eax
je 0x1400041a4
lea r8, [rsp + 0xa8]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_605
lea rdx, [rsp + 0xa8]
mov ecx, 6
mov edi, eax
call sub.wsnmp32.dll_Ordinal_900
test edi, edi
je 0x1400041a4
lea rdx, [rsp + 0xa8]
lea rcx, str.1.3.6.1.2.1.1.2.0
call sub.wsnmp32.dll_Ordinal_903
test eax, eax
je 0x1400041a4
lea r8, [rsp + 0xa8]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_605
lea rdx, [rsp + 0xa8]
mov ecx, 6
mov edi, eax
call sub.wsnmp32.dll_Ordinal_900
test edi, edi
je 0x1400041a4
lea rdx, [rsp + 0xa8]
lea rcx, str.1.3.6.1.2.1.2.2.1.6.1
call sub.wsnmp32.dll_Ordinal_903
test eax, eax
je 0x1400041a4
lea r8, [rsp + 0xa8]
xor r9d, r9d
xor edx, edx
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_605
lea rdx, [rsp + 0xa8]
mov ecx, 6
mov edi, eax
call sub.wsnmp32.dll_Ordinal_900
test edi, edi
je 0x1400041a4
mov rax, qword [rsp + 0x98]
xor r9d, r9d
mov edx, 0xa0
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call sub.wsnmp32.dll_SnmpCreateVbl
test rax, rax
mov qword [rsp + 0xa0], rax
jne 0x1400040fb
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_999
or ebp, 0xffffffff
mov dword [rsp + 0x90], ebp
jmp 0x1400041b6
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, str.public
mov qword [rsp + 0x100], rax
mov qword [rsp + 0xf8], rax
mov qword [rsp + 0x100], rdi
repne scasb al, byte [rdi]
lea rdx, [rsp + 0xf8]
not rcx
sub rcx, 1
mov dword [rsp + 0xf8], ecx
mov rcx, rsi
call sub.wsnmp32.dll_SnmpCreatePdu
lea rcx, [rsp + 0xe0]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0xa0]
mov r9, rax
mov qword [rsp + 0x20], rcx
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0xd0], rax
call sub.wsnmp32.dll_Ordinal_901
test eax, eax
jne 0x140004188
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_999
or ebp, 0xffffffff
mov dword [rsp + 0x90], ebp
mov rcx, qword [rsp + 0xa0]
call sub.wsnmp32.dll_SnmpGetVb
mov rcx, qword [rsp + 0xd0]
call sub.wsnmp32.dll_SnmpSetPduData
jmp 0x1400041b6
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_999
or ebp, 0xffffffff
mov dword [rsp + 0x90], ebp
mov rcx, qword [rsp + 0x98]
call sub.wsnmp32.dll_Ordinal_602
test ebp, ebp
mov qword [rsp + 0x98], r14
jne 0x140004962
lea edx, [rbp + 2]
lea ecx, [rbp + 0x17]
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
cmp rax, 0xffffffffffffffff
mov rbx, rax
mov qword [rsp + 0x148], rax
jne 0x140004200
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebp, ebx
jmp 0x140004962
mov edx, 0x29
lea r9, [rsp + 0xd8]
mov rcx, rax
lea r8d, [rdx - 0x20]
mov dword [rsp + 0xd8], r14d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x140004282
xor ecx, ecx
mov word [rsp + 0x370], reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_htons]
lea rcx, [rsp + 0x378]
lea rdx, [rsp + 0x370]
mov word [rsp + 0x372], ax
mov rax, qword [0x1400662d0]
mov r8d, 0x1c
mov qword [rcx], rax
mov rax, qword [0x1400662d8]
mov qword [rcx + 8], rax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x140004290
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebp, 0xffffffff
jmp 0x140004959
mov cx, 0xa1
mov word [rsp + 0x370], reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_htons]
mov r8d, dword [rsp + 0xe0]
mov rdx, qword [rsp + 0xe8]
mov word [rsp + 0x372], ax
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x378], rax
mov qword [rsp + 0x380], rax
lea rax, [rsp + 0x370]
mov rcx, rbx
mov dword [rsp + 0x28], 0x1c
mov byte [rsp + 0x378], 0xff
mov qword [rsp + 0x20], rax
mov byte [rsp + 0x379], 2
mov byte [rsp + reloc.wsnmp32.dll_Ordinal_903], 1
mov dword [rsp + reloc.wsnmp32.dll_Ordinal_904], r12d
call qword [sym.imp.WS2_32.dll_sendto]
lea rdx, [rsp + 0xe0]
mov ecx, 4
mov edi, eax
call sub.wsnmp32.dll_Ordinal_900
cmp edi, 0xffffffff
je 0x140004959
mov qword [rsp + 0xc10], r15
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
lea rax, [rsp + 0xf0]
lea rdx, [rsp + 0x160]
lea ecx, [r9 + 1]
xor r8d, r8d
mov qword [rsp + 0x168], rbx
mov dword [rsp + 0x160], 1
mov dword [rsp + 0xf0], 1
mov dword [rsp + 0xf4], r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x14000494a
test eax, eax
jle 0x14000494a
lea rdx, [rsp + 0x160]
mov rcx, rbx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x14000494a
xor eax, eax
lea rdx, [rsp + 0x800]
xor r9d, r9d
mov dword [rsp + 0x370], eax
mov dword [rsp + 0x374], eax
mov dword [rsp + 0x378], eax
mov dword [rsp + 0x37c], eax
mov dword [rsp + 0x380], eax
mov dword [rsp + reloc.wsnmp32.dll_SnmpGetLastError], eax
mov dword [rsp + reloc.wsnmp32.dll_Ordinal_904], eax
lea rax, [rsp + 0xdc]
mov r8d, 0x400
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x370]
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov dword [rsp + 0xdc], 0x1c
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp eax, 0xffffffff
je 0x14000494a
mov dword [rsp + 0xe0], eax
lea rax, [rsp + 0x800]
lea r9, [rsp + 0xd0]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0xe0]
lea r8, [rsp + 0x108]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xa0]
lea rdx, [rsp + 0x110]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call sub.wsnmp32.dll_Ordinal_902
test eax, eax
je 0x140004334
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x98]
lea r9, [rsp + 0x140]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x124]
lea r8, [rsp + 0x144]
lea rdx, [rsp + 0x130]
mov qword [rsp + 0x20], rax
call sub.wsnmp32.dll_SnmpDuplicateVbl
cmp eax, 1
jne 0x140004911
lea rcx, [rsp + 0x394]
xor edx, edx
mov r8d, 0x104
call fcn.1400421c0
lea rcx, [rsp + 0x498]
xor edx, edx
mov r8d, 0x80
call fcn.1400421c0
movzx ecx, byte [rsp + reloc.wsnmp32.dll_Ordinal_902]
movzx edi, byte [rsp + reloc.wsnmp32.dll_SnmpGetLastError]
movzx esi, byte [rsp + 0x383]
movzx r10d, byte [rsp + 0x382]
movzx r11d, byte [rsp + 0x381]
movzx ebx, byte [rsp + 0x380]
movzx ebp, byte [rsp + 0x37f]
movzx r12d, byte [rsp + 0x37e]
movzx r13d, byte [rsp + 0x37d]
movzx r14d, byte [rsp + 0x37c]
movzx r15d, byte [rsp + 0x37b]
movzx r9d, byte [rsp + 0x379]
movzx r8d, byte [rsp + 0x378]
xor edx, edx
xor eax, eax
mov qword [rsp + 0x518], rdx
mov qword [rsp + 0x520], rdx
mov qword [rsp + 0x558], rax
mov qword [rsp + 0x560], rax
mov qword [rsp + 0x568], rax
mov qword [rsp + 0x570], rax
movzx eax, byte [rsp + reloc.wsnmp32.dll_Ordinal_903]
mov qword [rsp + 0x528], rdx
mov dword [rsp + 0x88], eax
movzx eax, byte [rsp + 0x37a]
mov dword [rsp + 0x80], ecx
mov qword [rsp + 0x530], rdx
mov qword [rsp + 0x538], rdx
mov qword [rsp + 0x540], rdx
mov qword [rsp + 0x548], rdx
mov qword [rsp + 0x550], rdx
movzx edx, byte [rsp + reloc.wsnmp32.dll_Ordinal_901]
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x68], esi
mov dword [rsp + 0x60], r10d
mov dword [rsp + 0x58], r11d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r14d
lea rdx, str._02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x:_02x_02x
lea rcx, [rsp + 0x518]
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x390], 6
mov dword [rsp + 0x20], eax
call fcn.140005de0
mov rcx, qword [rsp + 0x98]
call sub.wsnmp32.dll_Ordinal_603
mov ebp, 1
cmp eax, ebp
mov r12d, eax
jb 0x140004880
nop
nop
nop
mov rcx, qword [rsp + 0x98]
lea r9, [rsp + 0xb8]
lea r8, [rsp + 0xa8]
mov edx, ebp
call sub.wsnmp32.dll_Ordinal_604
lea r8, [rsp + 0x780]
lea rcx, [rsp + 0xa8]
mov edx, 0x80
call sub.wsnmp32.dll_Ordinal_904
lea rsi, [rsp + 0x780]
lea rdi, str.1.3.6.1.2.1.1.1.0
mov ecx, reloc.WS2_32.dll_select
repe cmpsb byte [rsi], byte [rdi]
jne 0x14000473e
cmp dword [rsp + 0xb8], 4
jne 0x140004862
mov esi, dword [rsp + 0xc0]
cmp esi, 0x103
jbe 0x1400046e6
mov r8d, 0x103
jmp 0x1400046e9
mov r8, rsi
mov rdx, qword [rsp + 0xc8]
lea rcx, [rsp + 0x394]
call fcn.140042a20
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x394]
lea rdx, [rsp + 0xc0]
repne scasb al, byte [rdi]
mov rax, rsi
not rcx
sub rcx, 1
cmp rcx, rsi
cmovb rax, rcx
mov ecx, 4
mov byte [rsp + rax + 0x394], 0
call sub.wsnmp32.dll_Ordinal_900
jmp 0x140004862
lea rsi, [rsp + 0x780]
lea rdi, str.1.3.6.1.2.1.1.2.0
mov ecx, reloc.WS2_32.dll_select
repe cmpsb byte [rsi], byte [rdi]
jne 0x140004795
cmp dword [rsp + 0xb8], 6
jne 0x140004862
lea r8, [rsp + 0x498]
lea rcx, [rsp + 0xc0]
mov edx, 0x80
call sub.wsnmp32.dll_Ordinal_904
lea rdx, [rsp + 0xc0]
mov ecx, 6
call sub.wsnmp32.dll_Ordinal_900
jmp 0x140004862
lea rsi, [rsp + 0x780]
lea rdi, str.1.3.6.1.2.1.2.2.1.6.1
mov ecx, socket
repe cmpsb byte [rsi], byte [rdi]
jne 0x140004862
cmp dword [rsp + 0xb8], 4
jne 0x140004862
xor ebx, ebx
xor esi, esi
cmp dword [rsp + 0xc0], ebx
mov byte [rsp + 0x558], bl
jbe 0x140004830
nop
nop
nop
nop
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x558]
repne scasb al, byte [rdi]
mov rax, qword [rsp + 0xc8]
mov edx, 0x20
movzx r9d, byte [rbx + rax]
not rcx
lea r8, str._02X:
sub rcx, 1
sub rdx, rcx
lea rcx, [rsp + rcx + 0x558]
call fcn.14003f730
add esi, 1
add rbx, 1
cmp esi, dword [rsp + 0xc0]
jb 0x1400047e0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x558]
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
je 0x140004850
mov byte [rsp + rcx + 0x557], al
lea rdx, [rsp + 0xc0]
mov ecx, 4
call sub.wsnmp32.dll_Ordinal_900
lea rdx, [rsp + 0xa8]
mov ecx, 6
call sub.wsnmp32.dll_Ordinal_900
add ebp, 1
cmp ebp, r12d
jbe 0x140004670
mov r14, qword [rsp + 0x128]
lea rax, [rsp + 0x394]
mov rdi, r14
sub rdi, rax
nop
nop
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1400048b3
add rax, 1
test ecx, ecx
jne 0x1400048a0
test edx, edx
je 0x1400048dc
lea rax, [rsp + 0x498]
mov rdi, r14
sub rdi, rax
movzx edx, byte [rax]
movzx ecx, byte [rax + rdi]
sub edx, ecx
jne 0x1400048d8
add rax, 1
test ecx, ecx
jne 0x1400048c5
test edx, edx
jne 0x1400048f1
mov rcx, qword [rsp + 0x150]
lea rdx, [rsp + 0x390]
call fcn.140004b50
mov rcx, qword [rsp + 0x98]
call sub.wsnmp32.dll_Ordinal_602
mov rsi, qword [rsp + 0x138]
mov rbx, qword [rsp + 0x148]
xor r14d, r14d
mov rcx, qword [rsp + 0xa0]
call sub.wsnmp32.dll_SnmpGetVb
mov rcx, qword [rsp + 0xd0]
call sub.wsnmp32.dll_SnmpSetPduData
mov rcx, qword [rsp + 0x108]
call sub.wsnmp32.dll_SnmpFreeContext
mov rcx, qword [rsp + 0x110]
call sub.wsnmp32.dll_SnmpFreeContext
jmp 0x140004334
mov ebp, dword [rsp + 0x90]
mov r15, qword [rsp + 0xc10]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, rsi
call sub.wsnmp32.dll_Ordinal_203
call sub.wsnmp32.dll_SnmpEntityToStr
mov eax, ebp
mov rsi, qword [rsp + 0xc58]
mov rcx, qword [rsp + 0xc00]
xor rcx, rsp
call fcn.14003dbe0
add rsp, 0xc18
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret