Function at 0x6d663e81
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
movzx ecx, word [eax]
push edi
push 2
pop ebx
mov dword [ebp - 0x34], ecx
cmp ecx, ebx
jne 0x6d663ee0
cmp dword [eax + 4], 0
je 0x6d663f3c
push 0x10
push eax
push dword [esi + 4]
call sym.net.dll__NET_Bind_12
or ebx, 0xffffffff
cmp eax, ebx
jne 0x6d663ecf
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, ebx
jmp 0x6d6641bc
push dword [esi + 8]
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi + 8], ebx
jmp 0x6d6641ba
cmp ecx, 0x17
jne 0x6d663f3c
xor edi, edi
cmp word [eax + 8], di
jne 0x6d663f17
cmp word [eax + 0xa], di
jne 0x6d663f17
cmp word [eax + 0xc], di
jne 0x6d663f17
cmp word [eax + 0xe], di
jne 0x6d663f17
cmp word [eax + 0x10], di
jne 0x6d663f17
cmp word [eax + 0x12], di
jne 0x6d663f17
cmp word [eax + 0x14], di
jne 0x6d663f17
cmp word [eax + 0x16], di
je 0x6d663f3c
push 0x1c
push eax
push dword [esi + 8]
call sym.net.dll__NET_Bind_12
or ebx, 0xffffffff
cmp eax, ebx
je 0x6d663ec2
push dword [esi + 4]
call dword [sym.imp.ws2_32.dll_closesocket]
xor eax, eax
mov dword [esi + 4], ebx
jmp 0x6d6641bc
push 0x1c
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x34], ebx
jne 0x6d663f7c
mov eax, dword [esi + 8]
mov edi, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi]
cmp word [eax], bx
movzx eax, word [eax + 2]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x3c], 0x17
mov dword [ebp - 0x2c], edi
call fcn.6d6638b9
pop ecx
jmp 0x6d663fa2
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [esi]
cmp word [eax], bx
movzx eax, word [eax + 2]
and dword [ebp - 0x1c], 0
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x28], eax
mov word [ebp - 0x20], bx
mov ax, word [ebp - 0x28]
xor ecx, ecx
mov word [ebp - 0x1e], ax
mov eax, dword [esi]
cmp word [eax], 0x17
setne cl
dec ecx
and ecx, 0xc
add ecx, 0x10
push ecx
push eax
push edi
call sym.net.dll__NET_Bind_12
or ebx, 0xffffffff
cmp eax, ebx
jne 0x6d663fee
cmp edi, ebx
je 0x6d663fd6
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
cmp dword [ebp - 0x24], ebx
je 0x6d663fe4
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi + 8], ebx
mov eax, ebx
jmp 0x6d663f34
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], 0x17
setne cl
dec ecx
and ecx, 0xc
add ecx, 0x10
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0x44]
push ecx
push eax
push edi
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, ebx
je 0x6d663fcb
mov eax, dword [esi]
cmp word [eax], 2
movzx eax, word [eax + 2]
mov word [ebp - 0x1e], ax
xor eax, eax
cmp word [ebp - 0x20], 0x17
setne al
dec eax
and eax, 0xc
add eax, 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call sym.net.dll__NET_Bind_12
cmp eax, ebx
jne 0x6d6641ba
cmp word [ebp - 0x28], 0
mov dword [ebp - 0x4c], 4
jne 0x6d663fcb
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x1008
push 0xffff
push edi
call dword [sym.imp.ws2_32.dll_getsockopt]
and dword [ebp - 0x38], 0
mov edi, dword [sym.imp.ws2_32.dll_closesocket]
mov eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.ws2_32.dll_socket]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x6d664159
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x3c]
call dword [sym.imp.ws2_32.dll_socket]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x6d664176
xor ecx, ecx
cmp word [ebp - 0x20], 0x17
mov word [ebp - 0x1e], cx
setne cl
dec ecx
and ecx, 0xc
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call sym.net.dll__NET_Bind_12
cmp eax, ebx
je 0x6d664193
push dword [ebp - 0x28]
call edi
push dword [ebp - 0x30]
call edi
xor eax, eax
cmp word [ebp - 0x20], 0x17
setne al
dec eax
and eax, 0xc
add eax, 0x10
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, ebx
je 0x6d664152
movzx ecx, word [ebp - 0x1e]
mov eax, dword [esi]
mov word [eax + 2], cx
mov eax, dword [esi]
xor ecx, ecx
cmp word [eax], 0x17
setne cl
dec ecx
and ecx, 0xc
add ecx, 0x10
push ecx
push eax
push dword [ebp - 0x2c]
call sym.net.dll__NET_Bind_12
cmp eax, ebx
jne 0x6d66419d
inc dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0x32
jl 0x6d66407c
push dword [ebp - 0x2c]
call edi
jmp 0x6d66416c
cmp dword [ebp - 0x28], ebx
je 0x6d664163
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x24], ebx
je 0x6d663fe4
push dword [ebp - 0x24]
call edi
jmp 0x6d663fe4
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x28], ebx
je 0x6d664185
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x30], ebx
je 0x6d663fe4
push dword [ebp - 0x30]
jmp 0x6d66416f
push dword [ebp - 0x2c]
call edi
push dword [ebp - 0x24]
jmp 0x6d664179
cmp dword [ebp - 0x34], 2
jne 0x6d6641ae
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
jmp 0x6d6641b7
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 8], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d66b1da
leave
ret 4