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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b4
mov eax, dword [0x78ebd8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x998], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
mov dword [ebp - 0x9ac], eax
lea eax, [ebp - 0x104]
mov ebx, dword [esi]
push 0
push eax
mov dword [ebp - 0x99c], ebx
call fcn.005077d5
mov edi, dword [ebx + 0x560]
xor ecx, ecx
mov dword [ebp - 0x9b0], ecx
add esp, 0xc
mov eax, dword [ebx + 0x560]
mov dword [ebp - 0x98c], ecx
mov dword [ebp - 0x990], ecx
mov dword [ebp - 0x9a8], ecx
mov byte [ebp - 0x991], 1
mov dword [ebp - 0x9a0], ecx
test eax, eax
je 0x5c1ae4
push eax
call fcn.006909d0
pop ecx
cmp eax, 1
jbe 0x5c1adc
push edi
call fcn.006909d0
pop ecx
push 0x41
pop ecx
cmp eax, ecx
jb 0x5c18c7
push edi
call fcn.006909d0
pop ecx
mov ecx, eax
lea eax, [ecx + 1]
push 1
push eax
call dword [0x78c080]
mov dword [ebp - 0x9a0], eax
pop ecx
pop ecx
test eax, eax
jne 0x5c18e6
push 0x1b
jmp 0x5c204c
mov al, byte [edi]
cmp al, 0x5b
jne 0x5c1926
lea eax, [edi + 1]
push 0x5d
push edi
mov dword [ebp - 0x990], eax
call fcn.0068e030
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5c199c
mov eax, dword [ebp - 0x990]
mov ecx, edi
sub ecx, eax
push ecx
push eax
mov eax, dword [ebp - 0x9a0]
push eax
call fcn.00690560
add esp, 0xc
jmp 0x5c199c
cmp al, 0x3a
je 0x5c199c
push 0x3a
push edi
call fcn.0068e030
mov dword [ebp - 0x990], eax
pop ecx
pop ecx
test eax, eax
je 0x5c1987
lea eax, [ebp - 0x988]
push eax
push edi
push 0x17
call fcn.005b4b7a
add esp, 0xc
cmp eax, 1
jne 0x5c1966
mov eax, dword [ebp - 0x9a0]
push edi
push eax
call fcn.0069a230
xor edi, edi
jmp 0x5c199a
mov eax, dword [ebp - 0x990]
sub eax, edi
push eax
mov eax, dword [ebp - 0x9a0]
push edi
push eax
call fcn.00690560
mov edi, dword [ebp - 0x990]
add esp, 0xc
jmp 0x5c199c
mov eax, dword [ebp - 0x9a0]
push edi
push eax
call fcn.0069a230
mov edi, dword [ebp - 0x990]
pop ecx
pop ecx
xor edx, edx
and dword [ebp - 0x990], edx
test edi, edi
je 0x5c1a07
push 0x3a
push edi
call fcn.0068e030
pop ecx
xor edx, edx
mov dword [ebp - 0x990], eax
xor edi, edi
pop ecx
test eax, eax
je 0x5c1a0d
push 0xa
lea ecx, [eax + 1]
push edi
push ecx
call fcn.0069a947
push eax
call fcn.005aa23c
push 0x2d
push dword [ebp - 0x990]
movzx edi, ax
call fcn.0068e030
add esp, 0x18
test eax, eax
je 0x5c1a02
push 0xa
inc eax
push 0
push eax
call fcn.0069a947
push eax
call fcn.005aa23c
add esp, 0x10
movzx edx, ax
jmp 0x5c1a0d
movzx edx, di
jmp 0x5c1a0d
mov edi, dword [ebp - 0x990]
xor ecx, ecx
movzx eax, dx
cmp di, dx
cmovbe ecx, eax
movzx eax, cx
mov ecx, eax
mov dword [ebp - 0x9a8], eax
mov dword [ebp - 0x9b4], ecx
xor ecx, ecx
cmp di, dx
movzx eax, di
mov edi, dword [ebp - 0x9a0]
cmovbe ecx, eax
movzx ecx, cx
mov dword [ebp - 0x990], ecx
cmp byte [edi], 0
je 0x5c1ab2
push 0x401
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x54]
push edi
push dword [esi + 0x90]
push dword [eax + 0x18]
call fcn.005c59f4
pop ecx
push eax
mov eax, dword [esi + 0x54]
push dword [eax + 4]
call fcn.00413570
add esp, 0x18
sub eax, 0
je 0x5c1a97
sub eax, 1
je 0x5c204a
sub eax, 1
jne 0x5c1a9b
lea eax, [ebp - 0x508]
mov dword [ebp - 0x98c], eax
jmp 0x5c1aa1
mov eax, edi
jmp 0x5c1a8f
mov eax, dword [ebp - 0x98c]
mov ecx, dword [ebp - 0x990]
movzx edx, cx
mov ecx, dword [ebp - 0x9a8]
jmp 0x5c1ac3
xor eax, eax
movzx edx, cx
mov ecx, dword [ebp - 0x9b4]
mov dword [ebp - 0x98c], eax
movzx ecx, cx
mov dword [ebp - 0x9a8], ecx
mov dword [ebp - 0x990], edx
test eax, eax
jne 0x5c1b88
jmp 0x5c1ae6
mov edi, dword [ebp - 0x9a0]
jmp 0x5c1ae6
mov edi, ecx
lea eax, [ebp - 0x9a4]
mov dword [ebp - 0x9a4], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x5c1b36
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.005aaf73
push eax
push str.getsockname___failed:__s
push ebx
call fcn.0059b8d5
push edi
call dword [0x78c074]
add esp, 0x18
jmp 0x5c204a
mov ax, word [ebp - 0x988]
push 0x17
pop ecx
push 0x401
cmp ax, cx
je 0x5c1b5e
lea ecx, [ebp - 0x508]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x984]
push ecx
push eax
jmp 0x5c1b6d
lea eax, [ebp - 0x508]
push eax
lea eax, [ebp - 0x980]
push eax
push ecx
call fcn.005b5256
lea eax, [ebp - 0x508]
mov byte [ebp - 0x991], 0
add esp, 0x10
mov dword [ebp - 0x98c], eax
lea ecx, [ebp - 0x9b0]
push ecx
push 0
push eax
push esi
call fcn.005a209b
add esp, 0x10
cmp eax, 1
jne 0x5c1baf
lea eax, [ebp - 0x9b0]
push eax
push esi
call fcn.005a16d9
pop ecx
pop ecx
mov eax, dword [ebp - 0x9b0]
mov edi, dword [ebp - 0x99c]
test eax, eax
je 0x5c1bcc
mov ebx, dword [eax]
push eax
push edi
call fcn.005a2221
pop ecx
pop ecx
jmp 0x5c1bce
xor ebx, ebx
test ebx, ebx
jne 0x5c1bf6
mov eax, dword [ebp - 0x98c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.0059b8d5
mov eax, dword [ebp - 0x9a0]
push eax
call dword [0x78c074]
jmp 0x5c2047
mov eax, dword [ebp - 0x9a0]
push eax
call dword [0x78c074]
or dword [ebp - 0x998], 0xffffffff
and dword [ebp - 0x98c], 0
pop ecx
lea eax, [ebp - 0x998]
push eax
push 0
push ebx
push esi
call fcn.005a9513
mov edi, eax
add esp, 0x10
test edi, edi
je 0x5c1c40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x98c], eax
test ebx, ebx
jne 0x5c1c12
jmp 0x5c1c46
mov eax, dword [ebp - 0x98c]
test ebx, ebx
jne 0x5c1c6a
push eax
push esi
call fcn.005aaf73
push eax
push str.socket_failure:__s
push dword [ebp - 0x99c]
call fcn.0059b8d5
add esp, 0x14
jmp 0x5c204a
push dword [ebx + 0x10]
lea eax, [ebp - 0x988]
push dword [ebx + 0x18]
push eax
call fcn.0068bfa0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov edx, dword [ebp - 0x990]
mov ecx, dword [ebp - 0x9a8]
cmp dx, cx
mov dword [ebp - 0x9a4], eax
movzx eax, dx
mov dword [ebp - 0x98c], eax
ja 0x5c202b
push 2
pop ecx
push eax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 0x9a4]
mov word [ebp - 0x986], ax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x5c1dd8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x991], 0
je 0x5c1d4f
mov ecx, 0x2741
cmp eax, ecx
jne 0x5c1d4f
push ecx
push esi
call fcn.005aaf73
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push str.bind_port_hu__on_non_local_address_failed:__s_n
push dword [ebp - 0x99c]
call fcn.0059b99f
add esp, 0x18
mov dword [ebp - 0x9a4], 0x80
lea eax, [ebp - 0x9a4]
push eax
lea eax, [ebp - 0x988]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5c1d70
mov eax, dword [ebp - 0x990]
movzx eax, ax
mov byte [ebp - 0x991], 0
jmp 0x5c1d62
cmp eax, 0x2740
je 0x5c1d5b
cmp eax, 0xd
jne 0x5c1da2
mov eax, dword [ebp - 0x98c]
inc eax
mov ecx, dword [ebp - 0x9a8]
cmp ax, cx
jmp 0x5c1c9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.005aaf73
push eax
push str.getsockname___failed:__s
push dword [ebp - 0x99c]
call fcn.0059b8d5
push dword [ebp - 0x998]
push esi
call fcn.005a8d08
add esp, 0x1c
jmp 0x5c204a
push eax
push esi
call fcn.005aaf73
push eax
mov eax, dword [ebp - 0x98c]
movzx eax, ax
push eax
push str.bind_port_hu__failed:__s
push dword [ebp - 0x99c]
call fcn.0059b8d5
push dword [ebp - 0x998]
push esi
call fcn.005a8d08
add esp, 0x20
jmp 0x5c204a
mov eax, dword [ebp - 0x98c]
mov ecx, dword [ebp - 0x9a8]
cmp ax, cx
ja 0x5c202b
lea eax, [ebp - 0x9a4]
mov dword [ebp - 0x9a4], 0x80
push eax
lea eax, [ebp - 0x988]
push eax
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x5c1d70
push 1
push dword [ebp - 0x998]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x5c1e43
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
call fcn.005aaf73
push eax
push str.socket_failure:__s
jmp 0x5c1d83
push 0x100
lea eax, [ebp - 0x104]
push eax
push ebx
call fcn.005a2059
add esp, 0xc
cmp byte [esi + 0x28d], 0
jne 0x5c1e71
cmp byte [esi + 0x283], 0
je 0x5c1e71
mov byte [esi + 0x28d], 1
mov edx, dword [ebp - 0x9ac]
push 2
pop ebx
cmp edx, ebx
je 0x5c1edf
mov cx, word [ebp - 0x988]
cmp byte [esi + 0x28d], 0
jne 0x5c1e92
test edx, edx
je 0x5c1ed4
cmp edx, 1
jne 0x5c1e9c
cmp cx, bx
jne 0x5c1ed4
movzx eax, cx
sub eax, ebx
je 0x5c1ea8
sub eax, 0x15
jne 0x5c1ed4
push dword [ebp - 0x986]
call dword [sym.imp.WS2_32.dll_ntohs]
mov edx, dword [ebp - 0x9ac]
movzx ebx, ax
test edx, edx
je 0x5c1fac
cmp edx, 1
je 0x5c1f11
mov cx, word [ebp - 0x988]
push 2
pop ebx
inc edx
mov dword [ebp - 0x9ac], edx
cmp edx, ebx
jne 0x5c1e85
lea ebx, [esi + 0x508]
push esi
mov dword [ebx + 0x6c], edx
call fcn.005bf972
mov eax, dword [ebp - 0x998]
push 0x1c
push esi
mov dword [esi + 0x1ac], eax
mov byte [esi + 0x286], 1
call fcn.005bf961
add esp, 0xc
jmp 0x5c201c
lea edx, [ebp - 0x908]
lea edi, [ebp - 0x104]
mov cl, byte [edi]
test cl, cl
je 0x5c1f42
cmp cl, 0x2e
movzx eax, cl
mov dword [ebp - 0x9b4], 0x2c
cmove eax, dword [ebp - 0x9b4]
mov byte [edx], al
inc edx
add edi, 1
jne 0x5c1f1d
movzx ecx, bx
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.0059c483
lea eax, [ebp - 0x908]
push eax
push str.PORT
push 0x6edd74
lea ebx, [esi + 0x508]
push ebx
call fcn.005c8954
mov edi, eax
add esp, 0x24
test edi, edi
je 0x5c2020
push edi
call fcn.005ab069
push eax
push str.Failure_sending_PORT_command:__s
push dword [ebp - 0x99c]
call fcn.0059b8d5
push dword [ebp - 0x998]
push esi
call fcn.005a8d08
jmp 0x5c2011
movzx eax, bx
lea ebx, [esi + 0x508]
push eax
lea eax, [ebp - 0x104]
push eax
push 2
pop ecx
xor eax, eax
cmp word [ebp - 0x988], cx
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
call fcn.005c8954
mov edi, eax
add esp, 0x18
test edi, edi
je 0x5c2020
push edi
call fcn.005ab069
push eax
push str.Failure_sending_EPRT_command:__s
push dword [ebp - 0x99c]
call fcn.0059b8d5
push dword [ebp - 0x998]
push esi
call fcn.005a8d08
mov dword [ebx + 0x6c], 1
push 0
push esi
call fcn.005bf961
add esp, 0x20
mov eax, edi
jmp 0x5c204d
mov edx, dword [ebp - 0x9ac]
jmp 0x5c1ee5
push str.bind___failed__we_ran_out_of_ports_
push dword [ebp - 0x99c]
call fcn.0059b8d5
push dword [ebp - 0x998]
push esi
call fcn.005a8d08
add esp, 0x10
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0068a492
mov esp, ebp
pop ebp
ret