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

Disassembly:
sub esp, 0x618
mov al, byte [0x8dc294]
push ebx
mov ebx, dword [esp + 0x620]
push ebp
push esi
push edi
mov edx, dword [ebx]
mov byte [esp + 0x30], al
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x31]
mov dword [esp + 0x10], 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [edx + 0x9ac]
xor ebp, ebp
mov dword [esp + 0x28], ebp
mov edi, dword [edx + 0x9ac]
cmp edi, ebp
mov dword [esp + 0x14], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], 1
je 0x879fdb
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jbe 0x879fdb
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x16
jae 0x879e8a
mov ecx, 0x16
jmp 0x879e96
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
inc ecx
push 1
push ecx
call dword [0x8d0940]
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x879eb9
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x618
ret
cmp byte [esi], 0x3a
jne 0x879f20
mov edi, esi
test edi, edi
je 0x879f79
push 0x3a
push edi
call fcn.008513f0
mov esi, eax
add esp, 8
test esi, esi
je 0x879f79
push 0xa
lea eax, [esi + 1]
push 0
push eax
call fcn.00897b96
push eax
call fcn.00862d10
mov edi, eax
push 0x2d
push esi
mov dword [esp + 0x38], edi
call fcn.008513f0
xor esi, esi
add esp, 0x18
cmp eax, esi
je 0x879f66
push 0xa
inc eax
push esi
push eax
call fcn.00897b96
push eax
call fcn.00862d10
add esp, 0x10
mov dword [esp + 0x1c], eax
jmp 0x879f6c
push 0x3a
push esi
call fcn.008513f0
mov edi, eax
add esp, 8
test edi, edi
je 0x879f45
mov ecx, edi
sub ecx, esi
push ecx
push esi
push ebp
call fcn.00849620
add esp, 0xc
jmp 0x879ec0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x879f79
mov dword [esp + 0x1c], edi
jmp 0x879f79
cmp di, ax
jbe 0x879f79
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
cmp byte [ebp], 0
je 0x879fdb
mov eax, dword [ebx + 0x2b8]
mov edx, dword [ebx + 0x2f4]
lea ecx, [esp + 0x224]
push 0x401
push ecx
mov ecx, dword [eax + 0x18]
push ebp
push edx
push ecx
call fcn.00856da0
mov edx, dword [ebx + 0x2b8]
add esp, 4
push eax
mov eax, dword [edx + 4]
push eax
call fcn.00856da0
add esp, 0x18
sub eax, 0
je 0x879fd1
dec eax
je 0x87a392
dec eax
jne 0x879fdb
lea edi, [esp + 0x224]
jmp 0x879fd3
mov edi, ebp
test edi, edi
jne 0x87a075
mov eax, dword [ebx + 0x408]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x87a041
lea ecx, [esp + 0x124]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0088abc0
mov edx, dword [esp + 0x20]
push eax
push str.getsockname___failed:__s
push edx
call fcn.0085e690
push ebp
call dword [0x8d0934]
add esp, 0x1c
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x224]
push 0x401
lea ecx, [esp + 0x68]
push eax
and edx, 0xffff
push ecx
push edx
call fcn.0088d390
add esp, 0x10
lea edi, [esp + 0x224]
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x28]
push eax
push 0
push 0
push edi
push ebx
call fcn.00884d00
add esp, 0x14
cmp eax, 1
jne 0x87a09b
lea ecx, [esp + 0x28]
push ecx
push ebx
call fcn.00855240
add esp, 8
mov eax, dword [esp + 0x28]
test eax, eax
je 0x87a0b7
mov edx, dword [esp + 0x14]
mov esi, dword [eax]
push eax
push edx
call fcn.00884f60
add esp, 8
test esi, esi
jne 0x87a0e1
mov eax, dword [esp + 0x14]
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push eax
call fcn.0085e690
push ebp
call dword [0x8d0934]
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
push ebp
call dword [0x8d0934]
add esp, 4
mov dword [esp + 0x10], 0xffffffff
xor edi, edi
mov ebp, esi
lea ecx, [esp + 0x10]
push ecx
push 0
push ebp
push ebx
call fcn.00864610
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
je 0x87a121
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
mov edi, eax
test ebp, ebp
jne 0x87a0f7
jmp 0x87a125
test ebp, ebp
jne 0x87a15b
lea edx, [esp + 0x124]
push 0x100
push edx
push edi
call fcn.0088abc0
push eax
mov eax, dword [esp + 0x24]
push str.socket_failure:__s
push eax
call fcn.0085e690
add esp, 0x18
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x18]
mov edx, ecx
lea edi, [esp + 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20]
mov eax, dword [ebp + 0x10]
cmp si, word [esp + 0x1c]
mov dword [esp + 0x18], eax
ja 0x87a2b5
cmp word [esp + 0x60], 2
jne 0x87a19d
push esi
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x62], ax
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x60]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x87a2ae
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x87a22b
cmp eax, 0x2741
jne 0x87a22b
lea ecx, [esp + 0x124]
push 0x100
push ecx
push eax
call fcn.0088abc0
and esi, 0xffff
push eax
push esi
mov esi, dword [esp + 0x28]
push str.bind_port_hu__on_non_local_address_failed:__s_n
push esi
call fcn.0085e5d0
mov ecx, dword [ebx + 0x408]
add esp, 0x1c
lea edx, [esp + 0x18]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x87a245
mov esi, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
jmp 0x87a238
cmp eax, 0x2740
je 0x87a237
cmp eax, 0xd
jne 0x87a266
inc esi
cmp si, word [esp + 0x1c]
jbe 0x87a189
jmp 0x87a2b5
lea edx, [esp + 0x124]
push 0x100
push edx
call edi
push eax
call fcn.0088abc0
push eax
push str.getsockname___failed:__s
push esi
jmp 0x87a37f
lea ecx, [esp + 0x124]
push 0x100
push ecx
push eax
call fcn.0088abc0
mov edx, dword [esp + 0x20]
and esi, 0xffff
push eax
push esi
push str.bind_port_hu__failed:__s
push edx
call fcn.0085e690
mov eax, dword [esp + 0x2c]
push eax
push ebx
call fcn.00864580
add esp, 0x24
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
cmp si, word [esp + 0x1c]
jbe 0x87a2e2
mov ecx, dword [esp + 0x14]
push str.bind___failed__we_ran_out_of_ports_
push ecx
call fcn.0085e690
mov edx, dword [esp + 0x18]
push edx
push ebx
call fcn.00864580
add esp, 0x10
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x60]
push eax
push ecx
push edx
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x87a34a
lea eax, [esp + 0x124]
push 0x100
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0088abc0
mov ecx, dword [esp + 0x20]
push eax
push str.getsockname___failed:__s
push ecx
call fcn.0085e690
mov edx, dword [esp + 0x28]
push edx
push ebx
call fcn.00864580
add esp, 0x20
mov eax, 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
mov eax, dword [esp + 0x10]
push 1
push eax
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x87a3a2
lea ecx, [esp + 0x124]
push 0x100
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0088abc0
mov edx, dword [esp + 0x20]
push eax
push str.socket_failure:__s
push edx
call fcn.0085e690
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.00864580
add esp, 0x20
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
add esp, 0x618
ret
lea ecx, [esp + 0x30]
push 0x2f
push ecx
push ebp
call fcn.008847c0
mov edi, dword [esp + 0x63c]
mov esi, 2
add esp, 0xc
cmp edi, esi
je 0x87a408
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebx + 0x560]
test eax, eax
jne 0x87a3d6
test edi, edi
je 0x87a403
cmp edi, 1
jne 0x87a3e2
cmp word [esp + 0x60], si
jne 0x87a403
mov eax, dword [esp + 0x60]
and eax, 0xffff
sub eax, esi
jne 0x87a403
mov edx, dword [esp + 0x62]
push edx
call ebp
test edi, edi
je 0x87a444
cmp edi, 1
je 0x87a4ba
inc edi
cmp edi, esi
jne 0x87a3c8
mov esi, dword [esp + 0x24]
push ebx
mov dword [ebx + 0x7e8], edi
call fcn.0087a570
mov eax, dword [esp + 0x14]
push 0x1c
push ebx
mov dword [ebx + 0x40c], eax
mov dword [ebx + 0x510], 1
call fcn.00878fa0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
and eax, 0xffff
xor ecx, ecx
cmp word [esp + 0x60], si
push eax
lea eax, [esp + 0x34]
lea ebp, [ebx + 0x780]
setne cl
inc ecx
push eax
push ecx
push str.EPRT
push str._s__d_s_hu
push ebp
call fcn.0088fe80
mov esi, eax
add esp, 0x18
test esi, esi
je 0x87a40c
push esi
call fcn.0088a810
mov edx, dword [esp + 0x18]
push eax
push str.Failure_sending_EPRT_command:__s
push edx
call fcn.0085e690
mov eax, dword [esp + 0x20]
push eax
push ebx
call fcn.00864580
push 0
push ebx
mov dword [ebp + 0x68], 1
call fcn.00878fa0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret
lea edx, [esp + 0x30]
lea ecx, [esp + 0xe0]
test edx, edx
je 0x87a4e3
lea esi, [esp + 0x30]
mov dl, byte [esi]
test dl, dl
je 0x87a4e3
cmp dl, 0x2e
jne 0x87a4dd
mov byte [ecx], 0x2c
jmp 0x87a4df
mov byte [ecx], dl
inc ecx
inc esi
jne 0x87a4cd
and eax, 0xffff
mov byte [ecx], 0
mov edx, eax
and edx, 0xff
shr eax, 8
push edx
push eax
push str.__d__d
push 0x14
push ecx
call fcn.00868010
lea eax, [esp + 0xf4]
push eax
push str.PORT
lea eax, [ebx + 0x780]
push 0x8d3770
push eax
call fcn.0088fe80
add esp, 0x24
mov dword [esp + 0x24], eax
test eax, eax
je 0x87a408
mov esi, eax
push esi
call fcn.0088a810
mov ecx, dword [esp + 0x18]
push eax
push str.Failure_sending_PORT_command:__s
push ecx
call fcn.0085e690
mov edx, dword [esp + 0x20]
push edx
push ebx
call fcn.00864580
push 0
push ebx
call fcn.00878fa0
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x618
ret