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

Disassembly:
sub esp, 0x66c
mov eax, dword [0x55f904]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x67c]
push edi
mov edi, dword [esp + 0x684]
push 0x2f
mov eax, dword [esi + 0x18]
mov dword [esp + 0x14], eax
add eax, 0x438
mov dword [esp + 0x30], eax
lea eax, [esp + 0xd0]
push 0
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x30], 0xffffffff
call fcn.004f0080
mov ebp, dword [esi + 0x57c]
xor eax, eax
add esp, 0xc
mov dword [esp + 0x30], eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], eax
test ebp, ebp
je 0x488f95
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x488dc6
sub ecx, edx
cmp ecx, 1
jbe 0x488f95
mov al, byte [ebp]
cmp al, 0x5b
jne 0x488e05
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x20], eax
call fcn.004f01e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x488e3f
mov eax, dword [esp + 0x18]
mov ebx, ebp
sub ebx, eax
mov dword [esp + 0x34], eax
jmp 0x488e45
cmp al, 0x3a
je 0x488e45
push 0x3a
push ebp
call fcn.004f01e0
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebp
test eax, eax
je 0x488e9e
mov ebx, eax
lea eax, [esp + 0x54]
push eax
push ebp
push 0x17
sub ebx, ebp
call fcn.0047bf90
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x18]
xor edx, edx
test ebp, ebp
je 0x488eae
push 0x3a
push ebp
call fcn.004f01e0
add esp, 8
mov dword [esp + 0x18], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x488eb0
push 0xa
inc eax
push ebp
push eax
call fcn.004fc82a
push eax
call fcn.00460880
push 0x2d
push dword [esp + 0x2c]
movzx ebp, ax
call fcn.004f01e0
add esp, 0x18
test eax, eax
je 0x488e9a
push 0xa
inc eax
push 0
push eax
call fcn.004fc82a
push eax
call fcn.00460880
add esp, 0x10
movzx edx, ax
jmp 0x488eb0
mov edx, ebp
jmp 0x488eb0
mov ebx, ebp
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x488ea3
sub ebx, ecx
xor edx, edx
xor ebp, ebp
xor ecx, ecx
movzx eax, dx
cmp bp, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp bp, dx
mov dword [esp + 0x1c], eax
movzx eax, bp
cmovbe ecx, eax
movzx ebp, cx
test ebx, ebx
je 0x488f84
cmp ebx, 0x32
jae 0x489250
push ebx
push dword [esp + 0x38]
lea eax, [esp + 0x104]
push eax
call fcn.004f0450
add esp, 0xc
mov byte [esp + ebx + 0xfc], 0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x274]
push 0x401
push eax
lea eax, [esp + 0x104]
push eax
mov eax, dword [ebx + 0x2c]
push dword [ebx + 0x50c]
add eax, 0x10
push eax
call fcn.004956a0
add esp, 4
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax]
call fcn.00425ad0
add esp, 0x18
sub eax, 0
je 0x488f5a
sub eax, 1
je 0x489254
sub eax, 1
jne 0x488f67
lea eax, [esp + 0x274]
mov dword [esp + 0x30], eax
jmp 0x488f69
lea eax, [esp + 0xfc]
mov dword [esp + 0x30], eax
jmp 0x488f69
xor eax, eax
mov ecx, ebp
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
movzx ebp, cx
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x48902d
jmp 0x488f99
mov ecx, dword [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x18], eax
movzx eax, cx
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x488fe8
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00445980
push eax
push str.getsockname___failed:__s
push esi
call fcn.0045d0c0
add esp, 0x18
jmp 0x489254
cmp word [esp + 0x4c], 0x17
lea edx, [esp + 0x54]
movzx eax, word [esp + 0x4c]
lea ecx, [esp + 0x50]
cmove ecx, edx
lea edx, [esp + 0x274]
push 0x401
push edx
push ecx
push eax
call fcn.004941a0
add esp, 0x10
test eax, eax
je 0x489254
lea eax, [esp + 0x274]
mov byte [esp + 0x17], 0
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push eax
push esi
call fcn.0046ba90
add esp, 0x14
cmp eax, 1
jne 0x489053
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0044fd80
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x489542
mov ebp, dword [ebp]
test ebp, ebp
je 0x489542
nop word [eax + eax]
lea eax, [esp + 0x24]
push eax
movzx eax, byte [ebx + 0x516]
push eax
push 0
push ebp
push esi
call fcn.00465970
add esp, 0x14
test eax, eax
je 0x4890c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x489070
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00445980
push eax
push str.socket_failure:__s
push esi
call fcn.0045d0c0
add esp, 0x18
jmp 0x489254
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4890d8
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x4890dd
mov eax, 0x52d230
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.0045d300
push dword [ebp + 0x10]
lea eax, [esp + 0x5c]
push dword [ebp + 0x18]
push eax
call fcn.004f0450
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp ax, word [esp + 0x1c]
movzx ebx, ax
ja 0x48952f
mov eax, dword [sym.imp.WS2_32.dll_htons]
push ebx
call eax
push dword [esp + 0x20]
movzx eax, ax
mov word [esp + 0x52], ax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x4891fd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x17], 0
je 0x4891be
cmp eax, 0x2741
jne 0x4891be
push 0x100
lea eax, [esp + 0x178]
push eax
push 0x2741
call fcn.00445980
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0045d190
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
add esp, 0x1c
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x50]
push eax
push dword [ebx + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x488fbb
mov eax, dword [esp + 0x18]
movzx ebx, ax
cmp bx, word [esp + 0x1c]
mov byte [esp + 0x17], 0
jmp 0x48910f
cmp eax, 0x2740
je 0x4891ca
cmp eax, 0xd
jne 0x4891d5
inc ebx
cmp bx, word [esp + 0x1c]
jmp 0x48910f
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00445980
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0045d0c0
add esp, 0x1c
jmp 0x489250
cmp bx, word [esp + 0x1c]
ja 0x48952f
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48929e
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00445980
push eax
push str.getsockname___failed:__s
push esi
call fcn.0045d0c0
add esp, 0x18
mov ebx, dword [esp + 0x10]
mov ebp, 0x1e
cmp dword [esp + 0x28], 0
je 0x48926e
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0046c000
add esp, 8
test ebp, ebp
je 0x48957c
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
test al, al
je 0x489573
test edi, edi
je 0x48955a
movzx eax, al
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x48955f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4892b5
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x4892ba
mov eax, 0x52d230
movzx ebx, bx
push ebx
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.0045d300
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x489301
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00445980
push eax
push str.socket_failure:__s
jmp 0x489247
mov eax, dword [esi + 0x18]
test eax, eax
je 0x489318
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x48931d
mov eax, 0x52d230
push ebx
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.0045d300
push 0x2f
lea eax, [esp + 0xe0]
push eax
push ebp
call fcn.0046ba40
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp byte [eax + 0x2a0], 0
jne 0x48935a
cmp byte [eax + 0x29b], 0
je 0x48935a
mov byte [eax + 0x2a0], 1
cmp edi, 2
je 0x4893ba
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x4c]
nop word [eax + eax]
cmp byte [eax + 0x2a0], 0
jne 0x48937d
test edi, edi
je 0x4893b4
cmp edi, 1
jne 0x489388
cmp cx, 2
jne 0x4893b4
movzx eax, cx
sub eax, 2
je 0x489395
sub eax, 0x15
jne 0x4893b0
push dword [esp + 0x4e]
call ebp
movzx ebx, ax
test edi, edi
je 0x48948a
cmp edi, 1
je 0x4893ec
mov cx, word [esp + 0x4c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 2
jne 0x489370
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], edi
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
cmp al, 0x1c
je 0x4894fc
test edi, edi
je 0x4894e3
movzx eax, al
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x4894e8
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x130]
test cl, cl
je 0x489427
lea ebp, [esp + 0xcc]
mov eax, edx
sub ebp, eax
mov esi, 0x2c
nop
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
mov cl, byte [edx + ebp]
test cl, cl
jne 0x489410
mov esi, dword [esp + 0x38]
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.00462a00
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x144]
push eax
push 0x52d061
push 0x52c890
push ebx
push esi
call fcn.0049cf80
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x4893be
push ebp
call fcn.00445af0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0045d0c0
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x489259
movzx eax, bx
mov ebx, dword [esp + 0x2c]
push eax
lea eax, [esp + 0xd0]
push eax
xor eax, eax
cmp word [esp + 0x54], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebx
push esi
call fcn.0049cf80
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x4893be
push ebp
call fcn.00445af0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0045d0c0
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x489259
mov eax, 0x52d230
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.0045d300
add esp, 0x10
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push 1
push ebx
push esi
mov byte [edi + 0x4e6], 0x1c
call fcn.004655c0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x489259
mov dword [esp + 0x24], 0xffffffff
jmp 0x489259
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0045d0c0
add esp, 8
jmp 0x489250
mov eax, dword [esp + 0x30]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0045d0c0
add esp, 0xc
jmp 0x489254
mov eax, 0x52d230
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.0045d300
add esp, 0x10
mov byte [edi + 0x4e6], 0
jmp 0x4895e0
cmp byte [ebx + 0x2a1], 0
je 0x4895ab
cmp byte [esi + 0x6a2], 0
je 0x4895ab
push 1
push ebx
call fcn.0045cb50
add esp, 8
test al, al
jne 0x4895ab
push 1
push ebx
push esi
call fcn.00455ff0
add esp, 0xc
mov ebp, eax
mov eax, dword [esi + 0x18]
push 0xa
push esi
mov byte [eax + 0x29c], 0
lea eax, [esp + 0x44]
push eax
call fcn.00473370
mov eax, dword [esi + 0x4d4]
mov ecx, 0xea60
test eax, eax
push 0xd
cmovne ecx, eax
push 0
push ecx
push esi
call fcn.00449760
add esp, 0x1c
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4895f4
push eax
push ebx
push esi
call fcn.00465950
add esp, 0xc
mov ecx, dword [esp + 0x678]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004edf30
add esp, 0x66c
ret