Function at 0x6cb22e60
Capabilities:
Get local ipv4 addresses
Get socket information
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
cmp eax, 0x20
je 0x6cb23130
jbe 0x6cb22f11
cmp eax, 0x1000
je 0x6cb23030
jbe 0x6cb22ed0
cmp eax, 0x1002
je 0x6cb23050
jb 0x6cb23010
cmp eax, 0x1003
jne 0x6cb22eeb
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 0x80]
mov eax, ebx
call sym._str_to_buffer
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0x4e
je 0x6cb22fa0
cmp eax, 0x5d
je 0x6cb23070
cmp eax, 0x24
je 0x6cb23100
test byte [0x6cb2c14c], 1
jne 0x6cb232a0
mov dword [esp], 0x57
call sym._SetLastError_4
sub esp, 4
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 5
je 0x6cb23200
jbe 0x6cb22f72
cmp eax, 7
je 0x6cb23220
jb 0x6cb22fd0
cmp eax, 0x1f
jne 0x6cb22eeb
test ebx, ebx
je 0x6cb22fb0
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
jbe 0x6cb22fb0
mov eax, dword [edi + 0x5c]
mov esi, dword [edi + 0x60]
test eax, eax
je 0x6cb22f5d
mov dword [esp], eax
call sym._netconn_get_cipher_strength
cmp eax, 0x7f
jle 0x6cb23320
or esi, 0x20000000
mov eax, dword [ebp + 0x14]
mov dword [ebx], esi
mov dword [eax], 4
mov eax, 1
jmp 0x6cb22ec1
cmp eax, 2
je 0x6cb22ff0
cmp eax, 3
jne 0x6cb22eeb
mov eax, dword [edi + 0x80]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov eax, 1
jmp 0x6cb22ec1
test ebx, ebx
je 0x6cb22fb0
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
ja 0x6cb23240
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov dword [esp], 0x7a
call sym._SetLastError_4
xor eax, eax
sub esp, 4
jmp 0x6cb22ec1
mov eax, dword [edi + 0x88]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov eax, 1
jmp 0x6cb22ec1
mov eax, dword [edi + 0x7c]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x50]
mov eax, ebx
call sym._str_to_buffer
mov eax, 1
jmp 0x6cb22ec1
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x4c]
mov eax, ebx
call sym._str_to_buffer
mov eax, 1
jmp 0x6cb22ec1
mov eax, dword [edi + 0x40]
mov ecx, dword [ebp + 0x14]
mov eax, dword [eax + 0x40]
mov edx, dword [eax + 0x7c]
mov eax, ebx
call sym._str_to_buffer
mov eax, 1
jmp 0x6cb22ec1
mov dword [ebp - 0x24], 0x10
test ebx, ebx
je 0x6cb23300
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x103
jbe 0x6cb23300
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x6cb23330
mov esi, dword [edi + 0x40]
lea edx, [ebp - 0x24]
lea edi, [ebp - 0x20]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [eax + 8]
mov dword [esp], eax
call dword [sym.imp.ws2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x6cb22f07
lea edx, [ebx + 4]
mov eax, edi
call sym._copy_sockaddr
test eax, eax
je 0x6cb22f07
lea edx, [ebx + 0x84]
lea eax, [esi + 0x58]
call sym._copy_sockaddr
test eax, eax
je 0x6cb22f07
mov dword [ebx], 0x104
mov eax, 1
jmp 0x6cb22ec1
test ebx, ebx
je 0x6cb22fb0
mov eax, dword [ebp + 0x14]
cmp dword [eax], 3
jbe 0x6cb22fb0
mov edx, dword [edi + 0x5c]
xor eax, eax
test edx, edx
je 0x6cb22ff3
mov dword [esp], edx
call sym._netconn_get_cipher_strength
jmp 0x6cb22ff3
mov esi, dword [edi + 0x68]
test byte [0x6cb2c14c], 1
jne 0x6cb23260
test ebx, ebx
je 0x6cb232e0
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0x27
jbe 0x6cb232e0
test esi, esi
je 0x6cb22f07
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x2c]
mov eax, dword [eax + 0x28]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov dword [ebx + 0xc], edx
mov dword [ebx + 8], eax
mov eax, dword [esi + 0xc]
lea edx, [eax + 0x30]
mov eax, dword [esi]
call sym._blob_to_str
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0xc]
lea edx, [eax + 0x18]
mov eax, dword [esi]
call sym._blob_to_str
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], eax
mov dword [esp + 8], 0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0xc]
mov dword [esp], 1
mov dword [esp + 4], eax
call sym._CryptFindOIDInfo_12
sub esp, 0xc
test eax, eax
je 0x6cb231c8
mov eax, dword [eax + 8]
mov dword [ebx + 0x1c], eax
xor eax, eax
mov dword [ebx + 0x20], 0
mov edx, dword [edi + 0x5c]
test edx, edx
je 0x6cb231e3
mov dword [esp], edx
call sym._netconn_get_cipher_strength
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x28
mov eax, 1
jmp 0x6cb22ec1
mov eax, dword [edi + 0x84]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov eax, 1
jmp 0x6cb22ec1
mov eax, dword [edi + 0x8c]
mov dword [ebx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], 4
mov eax, 1
jmp 0x6cb22ec1
mov eax, dword [edi + 0x68]
mov dword [esp], eax
call sym._CertDuplicateCertificateContext_4
sub esp, 4
test eax, eax
jne 0x6cb22ff3
xor eax, eax
jmp 0x6cb22f09
mov dword [esp + 0x14], str.partial_stub_n
mov dword [esp + 0x10], 0x2fd
mov dword [esp + 0xc], str.request_query_option
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x6cb23140
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], str.unimplemented_option__u_n
mov dword [esp + 0x10], 0x366
mov dword [esp + 0xc], str.request_query_option
mov dword [esp + 8], 0x6cb2fdb5
mov dword [esp + 4], 0x6cb2c14c
mov dword [esp], 0
call sym._ros_dbg_log
jmp 0x6cb22ef8
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x28
mov dword [esp], 0x7a
call sym._SetLastError_4
xor eax, eax
sub esp, 4
jmp 0x6cb22ec1
mov eax, dword [ebp + 0x14]
mov dword [eax], 0x104
mov dword [esp], 0x7a
call sym._SetLastError_4
xor eax, eax
sub esp, 4
jmp 0x6cb22ec1
cmp eax, 0x37
jle 0x6cb23346
or esi, 0x40000000
jmp 0x6cb22f5d
mov dword [esp], 0x2ef3
call sym._SetLastError_4
xor eax, eax
sub esp, 4
jmp 0x6cb22ec1
or esi, 0x10000000
jmp 0x6cb22f5d