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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x6d781098]
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 0x6d773ee0
cmp dword [eax + 4], 0
je 0x6d773f3c
push 0x10
push eax
push dword [esi + 4]
call sym.net.dll__NET_Bind_12
or ebx, 0xffffffff
cmp eax, ebx
jne 0x6d773ecf
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov eax, ebx
jmp 0x6d7741bc
push dword [esi + 8]
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi + 8], ebx
jmp 0x6d7741ba
cmp ecx, 0x17
jne 0x6d773f3c
xor edi, edi
cmp word [eax + 8], di
jne 0x6d773f17
cmp word [eax + 0xa], di
jne 0x6d773f17
cmp word [eax + 0xc], di
jne 0x6d773f17
cmp word [eax + 0xe], di
jne 0x6d773f17
cmp word [eax + 0x10], di
jne 0x6d773f17
cmp word [eax + 0x12], di
jne 0x6d773f17
cmp word [eax + 0x14], di
jne 0x6d773f17
cmp word [eax + 0x16], di
je 0x6d773f3c
push 0x1c
push eax
push dword [esi + 8]
call sym.net.dll__NET_Bind_12
or ebx, 0xffffffff
cmp eax, ebx
je 0x6d773ec2
push dword [esi + 4]
call dword [sym.imp.ws2_32.dll_closesocket]
xor eax, eax
mov dword [esi + 4], ebx
jmp 0x6d7741bc
push 0x1c
lea eax, [ebp - 0x20]
push 0
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
cmp dword [ebp - 0x34], ebx
jne 0x6d773f7c
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.6d7738b9
pop ecx
jmp 0x6d773fa2
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 0x6d773fee
cmp edi, ebx
je 0x6d773fd6
push edi
call dword [sym.imp.ws2_32.dll_closesocket]
cmp dword [ebp - 0x24], ebx
je 0x6d773fe4
push dword [ebp - 0x24]
call dword [sym.imp.ws2_32.dll_closesocket]
mov dword [esi + 8], ebx
mov eax, ebx
jmp 0x6d773f34
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 0x6d773fcb
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 0x6d7741ba
cmp word [ebp - 0x28], 0
mov dword [ebp - 0x4c], 4
jne 0x6d773fcb
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 0x6d774159
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 0x6d774176
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 0x6d774193
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 0x6d774152
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 0x6d77419d
inc dword [ebp - 0x38]
cmp dword [ebp - 0x38], 0x32
jl 0x6d77407c
push dword [ebp - 0x2c]
call edi
jmp 0x6d77416c
cmp dword [ebp - 0x28], ebx
je 0x6d774163
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x24], ebx
je 0x6d773fe4
push dword [ebp - 0x24]
call edi
jmp 0x6d773fe4
push dword [ebp - 0x2c]
call edi
cmp dword [ebp - 0x28], ebx
je 0x6d774185
push dword [ebp - 0x28]
call edi
cmp dword [ebp - 0x30], ebx
je 0x6d773fe4
push dword [ebp - 0x30]
jmp 0x6d77416f
push dword [ebp - 0x2c]
call edi
push dword [ebp - 0x24]
jmp 0x6d774179
cmp dword [ebp - 0x34], 2
jne 0x6d7741ae
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x24]
jmp 0x6d7741b7
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.6d77b1da
leave
ret 4