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

Disassembly:
sub esp, 0x9b4
mov eax, dword [0x5a7464]
xor eax, esp
mov dword [esp + 0x9b0], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x9c4]
lea eax, [esp + 0xb8]
push edi
mov edi, dword [esp + 0x9cc]
push 0x100
mov ebx, dword [esi]
push 0
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 0xffffffff
call fcn.004b1e50
mov ecx, dword [esp + 0x24]
xor eax, eax
mov ebx, dword [ebx + 0x370]
xor ebp, ebp
mov dword [esp + 0x3c], eax
add esp, 0xc
mov dword [esp + 0x2c], eax
mov ecx, dword [ecx + 0x370]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x13], 1
mov dword [esp + 0x28], ebp
test ecx, ecx
je 0x4d97f4
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9637
sub ecx, edx
cmp ecx, 1
jbe 0x4d97f4
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9650
sub ecx, edx
cmp ecx, 0x16
jae 0x4d9665
mov ecx, 0x16
jmp 0x4d9679
mov ecx, ebx
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d9670
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x5a7370]
mov ebp, eax
add esp, 8
mov dword [esp + 0x28], ebp
test ebp, ebp
jne 0x4d969a
lea eax, [ebp + 0x1b]
jmp 0x4d9cd8
cmp byte [ebx], 0x3a
je 0x4d96c5
push 0x3a
push ebx
call fcn.004b24e0
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x4d972d
mov ecx, eax
sub ecx, ebx
push ecx
push ebx
push ebp
call fcn.00530350
mov ebx, dword [esp + 0x40]
add esp, 0xc
test ebx, ebx
je 0x4d973e
push 0x3a
push ebx
call fcn.004b24e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4d973e
push 0xa
lea ecx, [ebx + 1]
push 0
push ecx
call fcn.0052dec2
push eax
call fcn.004d12e0
movzx eax, ax
push 0x2d
push ebx
mov dword [esp + 0x34], eax
call fcn.004b24e0
add esp, 0x18
test eax, eax
je 0x4d9720
push 0xa
inc eax
push 0
push eax
call fcn.0052dec2
push eax
call fcn.004d12e0
movzx ecx, ax
add esp, 0x10
mov dword [esp + 0x20], ecx
jmp 0x4d973e
mov eax, dword [esp + 0x1c]
movzx ecx, ax
mov dword [esp + 0x20], ecx
jmp 0x4d973e
mov ecx, ebp
sub ecx, ebx
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [ecx + ebx - 1], al
test al, al
jne 0x4d9731
mov ebx, dword [esp + 0x20]
xor ecx, ecx
cmp word [esp + 0x1c], bx
movzx eax, bx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp word [esp + 0x1c], bx
mov edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
cmovbe ecx, eax
cmp byte [ebp], 0
movzx ebx, cx
je 0x4d97e8
push 0x401
lea eax, [esp + 0x1c0]
push eax
mov eax, dword [esi + 0x4c]
push ebp
push dword [esi + 0x88]
push dword [eax + 0x18]
call fcn.0040be20
add esp, 4
push eax
mov eax, dword [esi + 0x4c]
push dword [eax + 4]
call fcn.0040be20
add esp, 0x18
sub eax, 0
je 0x4d97c3
sub eax, 1
je 0x4d9cd3
sub eax, 1
jne 0x4d97cb
lea ecx, [esp + 0x1bc]
mov dword [esp + 0x2c], ecx
jmp 0x4d97cd
mov ecx, ebp
mov dword [esp + 0x2c], ecx
jmp 0x4d97cd
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
movzx ebx, ax
mov dword [esp + 0x20], ebx
test ecx, ecx
jne 0x4d9871
jmp 0x4d97f4
mov eax, ebx
mov dword [esp + 0x1c], eax
mov eax, edx
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x168]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4d9841
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004b3b90
push eax
push str.getsockname___failed:__s
push dword [esp + 0x28]
call fcn.004c4530
push ebp
call dword [0x5a7364]
add esp, 0x18
jmp 0x4d9cd3
push 0x401
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x48]
push eax
movzx eax, word [esp + 0x48]
push eax
call fcn.004d2bd0
lea ecx, [esp + 0x1cc]
mov byte [esp + 0x23], 0
add esp, 0x10
mov dword [esp + 0x2c], ecx
lea eax, [esp + 0x30]
push eax
push 0
push ecx
push esi
call fcn.004bb650
add esp, 0x10
cmp eax, 1
jne 0x4d9895
lea eax, [esp + 0x30]
push eax
push esi
call fcn.004bacc0
add esp, 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4d9cb3
mov ebp, dword [eax]
push eax
push dword [esp + 0x1c]
call fcn.004bb7e0
add esp, 8
test ebp, ebp
je 0x4d9cb3
push dword [esp + 0x28]
call dword [0x5a7364]
add esp, 4
mov dword [esp + 0x14], 0xffffffff
xor ebx, ebx
nop
lea eax, [esp + 0x14]
push eax
push 0
push ebp
push esi
call fcn.004c55c0
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
je 0x4d98fa
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov ebx, eax
test ebp, ebp
jne 0x4d98d0
jmp 0x4d98fe
test ebp, ebp
jne 0x4d991c
push ebx
push esi
call fcn.004b3b90
push eax
push str.socket_failure:__s
push dword [esp + 0x28]
call fcn.004c4530
add esp, 0x14
jmp 0x4d9cd3
push dword [ebp + 0x10]
lea eax, [esp + 0x40]
push dword [ebp + 0x18]
push eax
call fcn.004b18d0
mov eax, dword [ebp + 0x10]
add esp, 0xc
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
movzx ebx, ax
cmp ax, word [esp + 0x20]
ja 0x4d99f1
cmp word [esp + 0x3c], 2
jne 0x4d995c
push ebx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x3e], ax
push dword [esp + 0x24]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4d9a65
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x4d99d9
cmp eax, 0x2741
jne 0x4d99d9
push eax
push esi
call fcn.004b3b90
push eax
movzx eax, bx
mov ebx, dword [esp + 0x24]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push ebx
call fcn.004c4600
add esp, 0x18
mov dword [esp + 0x24], 0x80
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esi + 0x168]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4d9a0e
mov eax, dword [esp + 0x1c]
movzx ebx, ax
mov byte [esp + 0x13], 0
jmp 0x4d99e6
cmp eax, 0x2740
je 0x4d99e5
cmp eax, 0xd
jne 0x4d9a39
inc ebx
cmp bx, word [esp + 0x20]
jbe 0x4d9948
push str.bind___failed__we_ran_out_of_ports_
push dword [esp + 0x1c]
call fcn.004c4530
push dword [esp + 0x1c]
push esi
call fcn.004c4dd0
jmp 0x4d9cd0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004b3b90
push eax
push str.getsockname___failed:__s
push ebx
call fcn.004c4530
push dword [esp + 0x28]
push esi
call fcn.004c4dd0
add esp, 0x1c
jmp 0x4d9cd3
push eax
push esi
call fcn.004b3b90
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push dword [esp + 0x2c]
call fcn.004c4530
push dword [esp + 0x2c]
push esi
call fcn.004c4dd0
add esp, 0x20
jmp 0x4d9cd3
cmp bx, word [esp + 0x20]
ja 0x4d99f1
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4d9aa8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004b3b90
push eax
push str.getsockname___failed:__s
push dword [esp + 0x28]
jmp 0x4d9a22
push 1
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4d9ad4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.004b3b90
push eax
push str.socket_failure:__s
push dword [esp + 0x28]
jmp 0x4d9a22
push 0x100
lea eax, [esp + 0xc0]
push eax
push ebp
call fcn.004bb620
add esp, 0xc
cmp edi, 2
je 0x4d9b41
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop word [eax + eax]
cmp byte [esi + 0x29c], 0
jne 0x4d9b0d
test edi, edi
je 0x4d9b3b
cmp edi, 1
jne 0x4d9b18
cmp cx, 2
jne 0x4d9b3b
movzx eax, cx
sub eax, 2
jne 0x4d9b3b
push dword [esp + 0x3e]
call ebx
movzx ebp, ax
test edi, edi
je 0x4d9c43
cmp edi, 1
je 0x4d9b99
mov cx, word [esp + 0x3c]
inc edi
cmp edi, 2
jne 0x4d9b00
mov ebx, dword [esp + 0x28]
lea ebp, [esi + 0x4e8]
mov dword [ebp + 0x5c], edi
mov eax, dword [esi + 0x16c]
cmp eax, 0xffffffff
je 0x4d9b6d
push eax
push esi
call fcn.004c4dd0
add esp, 8
mov dword [esi + 0x16c], 0xffffffff
mov eax, dword [esp + 0x14]
mov dword [esi + 0x16c], eax
mov eax, ebx
mov dword [esi + 0x598], 0
mov byte [esi + 0x295], 1
mov dword [esi + 0x550], 0x1c
jmp 0x4d9cd8
lea edx, [esp + 0x5c0]
mov esi, 0x2c
lea ebx, [esp + 0xbc]
nop dword [eax]
mov cl, byte [ebx]
test cl, cl
je 0x4d9bc7
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add ebx, 1
jne 0x4d9bb0
mov ecx, ebp
mov byte [edx], 0
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
call fcn.004c6620
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0x5d4]
push eax
push str.PORT
push 0x57198c
lea ebp, [esi + 0x4e8]
push ebp
call fcn.004ea7c0
mov ebx, eax
add esp, 0x24
test ebx, ebx
je 0x4d9b4b
push ebx
call fcn.004b3c70
push eax
push str.Failure_sending_PORT_command:__s
push dword [esp + 0x24]
call fcn.004c4530
push dword [esp + 0x24]
push esi
call fcn.004c4dd0
add esp, 0x18
mov dword [esi + 0x550], 0
mov eax, ebx
jmp 0x4d9cd8
push ebp
lea eax, [esp + 0xc0]
push eax
xor eax, eax
lea ebp, [esi + 0x4e8]
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.004ea7c0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x4d9b4b
push ebx
call fcn.004b3c70
push eax
push str.Failure_sending_EPRT_command:__s
push dword [esp + 0x24]
call fcn.004c4530
push dword [esp + 0x24]
push esi
call fcn.004c4dd0
mov dword [ebp + 0x5c], 1
add esp, 0x18
mov dword [esi + 0x550], 0
mov eax, ebx
jmp 0x4d9cd8
mov eax, dword [esp + 0x2c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push dword [esp + 0x20]
call fcn.004c4530
push dword [esp + 0x34]
call dword [0x5a7364]
add esp, 0x10
mov eax, 0x1e
mov ecx, dword [esp + 0x9c0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00506c20
add esp, 0x9b4
ret