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

Disassembly:
sub esp, 0x66c
mov eax, dword [0x55e904]
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.004f05a0
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 0x4894d5
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x489306
sub ecx, edx
cmp ecx, 1
jbe 0x4894d5
mov al, byte [ebp]
cmp al, 0x5b
jne 0x489345
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x20], eax
call fcn.004f0700
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x48937f
mov eax, dword [esp + 0x18]
mov ebx, ebp
sub ebx, eax
mov dword [esp + 0x34], eax
jmp 0x489385
cmp al, 0x3a
je 0x489385
push 0x3a
push ebp
call fcn.004f0700
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebp
test eax, eax
je 0x4893de
mov ebx, eax
lea eax, [esp + 0x54]
push eax
push ebp
push 0x17
sub ebx, ebp
call fcn.0047c4e0
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x18]
xor edx, edx
test ebp, ebp
je 0x4893ee
push 0x3a
push ebp
call fcn.004f0700
add esp, 8
mov dword [esp + 0x18], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x4893f0
push 0xa
inc eax
push ebp
push eax
call fcn.004fcd4a
push eax
call fcn.00460d90
push 0x2d
push dword [esp + 0x2c]
movzx ebp, ax
call fcn.004f0700
add esp, 0x18
test eax, eax
je 0x4893da
push 0xa
inc eax
push 0
push eax
call fcn.004fcd4a
push eax
call fcn.00460d90
add esp, 0x10
movzx edx, ax
jmp 0x4893f0
mov edx, ebp
jmp 0x4893f0
mov ebx, ebp
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4893e3
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 0x4894c4
cmp ebx, 0x32
jae 0x489790
push ebx
push dword [esp + 0x38]
lea eax, [esp + 0x104]
push eax
call fcn.004f0970
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.00495be0
add esp, 4
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax]
call fcn.00425fa0
add esp, 0x18
sub eax, 0
je 0x48949a
sub eax, 1
je 0x489794
sub eax, 1
jne 0x4894a7
lea eax, [esp + 0x274]
mov dword [esp + 0x30], eax
jmp 0x4894a9
lea eax, [esp + 0xfc]
mov dword [esp + 0x30], eax
jmp 0x4894a9
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 0x48956d
jmp 0x4894d9
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 0x489528
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00445e50
push eax
push str.getsockname___failed:__s
push esi
call fcn.0045d5d0
add esp, 0x18
jmp 0x489794
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.004946e0
add esp, 0x10
test eax, eax
je 0x489794
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.0046bfd0
add esp, 0x14
cmp eax, 1
jne 0x489593
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00450290
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x489a82
mov ebp, dword [ebp]
test ebp, ebp
je 0x489a82
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.00465eb0
add esp, 0x14
test eax, eax
je 0x489601
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x4895b0
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00445e50
push eax
push str.socket_failure:__s
push esi
call fcn.0045d5d0
add esp, 0x18
jmp 0x489794
mov eax, dword [esi + 0x18]
test eax, eax
je 0x489618
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x48961d
mov eax, 0x52d230
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.0045d810
push dword [ebp + 0x10]
lea eax, [esp + 0x5c]
push dword [ebp + 0x18]
push eax
call fcn.004f0970
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 0x489a6f
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 0x48973d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x17], 0
je 0x4896fe
cmp eax, 0x2741
jne 0x4896fe
push 0x100
lea eax, [esp + 0x178]
push eax
push 0x2741
call fcn.00445e50
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0045d6a0
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 0x4894fb
mov eax, dword [esp + 0x18]
movzx ebx, ax
cmp bx, word [esp + 0x1c]
mov byte [esp + 0x17], 0
jmp 0x48964f
cmp eax, 0x2740
je 0x48970a
cmp eax, 0xd
jne 0x489715
inc ebx
cmp bx, word [esp + 0x1c]
jmp 0x48964f
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00445e50
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0045d5d0
add esp, 0x1c
jmp 0x489790
cmp bx, word [esp + 0x1c]
ja 0x489a6f
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 0x4897de
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00445e50
push eax
push str.getsockname___failed:__s
push esi
call fcn.0045d5d0
add esp, 0x18
mov ebx, dword [esp + 0x10]
mov ebp, 0x1e
cmp dword [esp + 0x28], 0
je 0x4897ae
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0046c540
add esp, 8
test ebp, ebp
je 0x489abc
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
test al, al
je 0x489ab3
test edi, edi
je 0x489a9a
movzx eax, al
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x489a9f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4897f5
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x4897fa
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.0045d810
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x489841
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00445e50
push eax
push str.socket_failure:__s
jmp 0x489787
mov eax, dword [esi + 0x18]
test eax, eax
je 0x489858
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x48985d
mov eax, 0x52d230
push ebx
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.0045d810
push 0x2f
lea eax, [esp + 0xe0]
push eax
push ebp
call fcn.0046bf80
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp byte [eax + 0x2a0], 0
jne 0x48989a
cmp byte [eax + 0x29b], 0
je 0x48989a
mov byte [eax + 0x2a0], 1
cmp edi, 2
je 0x4898fa
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x4c]
nop word [eax + eax]
cmp byte [eax + 0x2a0], 0
jne 0x4898bd
test edi, edi
je 0x4898f4
cmp edi, 1
jne 0x4898c8
cmp cx, 2
jne 0x4898f4
movzx eax, cx
sub eax, 2
je 0x4898d5
sub eax, 0x15
jne 0x4898f0
push dword [esp + 0x4e]
call ebp
movzx ebx, ax
test edi, edi
je 0x4899ca
cmp edi, 1
je 0x48992c
mov cx, word [esp + 0x4c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 2
jne 0x4898b0
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], edi
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
cmp al, 0x1c
je 0x489a3c
test edi, edi
je 0x489a23
movzx eax, al
mov eax, dword [eax*4 + 0x52cfd0]
jmp 0x489a28
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x130]
test cl, cl
je 0x489967
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 0x489950
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.00462f30
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x144]
push eax
push 0x52d061
push 0x52c890
push ebx
push esi
call fcn.0049d4c0
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x4898fe
push ebp
call fcn.00445fe0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0045d5d0
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x489799
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.0049d4c0
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x4898fe
push ebp
call fcn.00445fe0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0045d5d0
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x489799
mov eax, 0x52d230
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.0045d810
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.00465b00
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x489799
mov dword [esp + 0x24], 0xffffffff
jmp 0x489799
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0045d5d0
add esp, 8
jmp 0x489790
mov eax, dword [esp + 0x30]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0045d5d0
add esp, 0xc
jmp 0x489794
mov eax, 0x52d230
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.0045d810
add esp, 0x10
mov byte [edi + 0x4e6], 0
jmp 0x489b20
cmp byte [ebx + 0x2a1], 0
je 0x489aeb
cmp byte [esi + 0x6a2], 0
je 0x489aeb
push 1
push ebx
call fcn.0045d060
add esp, 8
test al, al
jne 0x489aeb
push 1
push ebx
push esi
call fcn.00456500
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.004738c0
mov eax, dword [esi + 0x4d4]
mov ecx, 0xea60
test eax, eax
push 0xd
cmovne ecx, eax
push 0
push ecx
push esi
call fcn.00449c50
add esp, 0x1c
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x489b34
push eax
push ebx
push esi
call fcn.00465e90
add esp, 0xc
mov ecx, dword [esp + 0x678]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ee450
add esp, 0x66c
ret