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

Disassembly:
sub esp, 0x66c
mov eax, dword [0x562904]
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.004f3680
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 0x48c5a5
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48c3d6
sub ecx, edx
cmp ecx, 1
jbe 0x48c5a5
mov al, byte [ebp]
cmp al, 0x5b
jne 0x48c415
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x20], eax
call fcn.004f37e0
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x48c44f
mov eax, dword [esp + 0x18]
mov ebx, ebp
sub ebx, eax
mov dword [esp + 0x34], eax
jmp 0x48c455
cmp al, 0x3a
je 0x48c455
push 0x3a
push ebp
call fcn.004f37e0
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebp
test eax, eax
je 0x48c4ae
mov ebx, eax
lea eax, [esp + 0x54]
push eax
push ebp
push 0x17
sub ebx, ebp
call fcn.0047f5b0
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x18]
xor edx, edx
test ebp, ebp
je 0x48c4be
push 0x3a
push ebp
call fcn.004f37e0
add esp, 8
mov dword [esp + 0x18], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x48c4c0
push 0xa
inc eax
push ebp
push eax
call fcn.004ffe2a
push eax
call fcn.00463e90
push 0x2d
push dword [esp + 0x2c]
movzx ebp, ax
call fcn.004f37e0
add esp, 0x18
test eax, eax
je 0x48c4aa
push 0xa
inc eax
push 0
push eax
call fcn.004ffe2a
push eax
call fcn.00463e90
add esp, 0x10
movzx edx, ax
jmp 0x48c4c0
mov edx, ebp
jmp 0x48c4c0
mov ebx, ebp
lea ecx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x48c4b3
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 0x48c594
cmp ebx, 0x32
jae 0x48c860
push ebx
push dword [esp + 0x38]
lea eax, [esp + 0x104]
push eax
call fcn.004f3a50
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.00498cb0
add esp, 4
push eax
mov eax, dword [ebx + 0x2c]
push dword [eax]
call fcn.004289b0
add esp, 0x18
sub eax, 0
je 0x48c56a
sub eax, 1
je 0x48c864
sub eax, 1
jne 0x48c577
lea eax, [esp + 0x274]
mov dword [esp + 0x30], eax
jmp 0x48c579
lea eax, [esp + 0xfc]
mov dword [esp + 0x30], eax
jmp 0x48c579
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 0x48c63d
jmp 0x48c5a9
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 0x48c5f8
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448f80
push eax
push str.getsockname___failed:__s
push esi
call fcn.004606d0
add esp, 0x18
jmp 0x48c864
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.004977b0
add esp, 0x10
test eax, eax
je 0x48c864
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.0046f0a0
add esp, 0x14
cmp eax, 1
jne 0x48c663
lea eax, [esp + 0x28]
push eax
push esi
call fcn.00453380
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x48cb52
mov ebp, dword [ebp]
test ebp, ebp
je 0x48cb52
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.00468f80
add esp, 0x14
test eax, eax
je 0x48c6d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x48c680
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00448f80
push eax
push str.socket_failure:__s
push esi
call fcn.004606d0
add esp, 0x18
jmp 0x48c864
mov eax, dword [esi + 0x18]
test eax, eax
je 0x48c6e8
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x530fd0]
jmp 0x48c6ed
mov eax, 0x531230
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.00460910
push dword [ebp + 0x10]
lea eax, [esp + 0x5c]
push dword [ebp + 0x18]
push eax
call fcn.004f3a50
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 0x48cb3f
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 0x48c80d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x17], 0
je 0x48c7ce
cmp eax, 0x2741
jne 0x48c7ce
push 0x100
lea eax, [esp + 0x178]
push eax
push 0x2741
call fcn.00448f80
push eax
movzx eax, bx
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.004607a0
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 0x48c5cb
mov eax, dword [esp + 0x18]
movzx ebx, ax
cmp bx, word [esp + 0x1c]
mov byte [esp + 0x17], 0
jmp 0x48c71f
cmp eax, 0x2740
je 0x48c7da
cmp eax, 0xd
jne 0x48c7e5
inc ebx
cmp bx, word [esp + 0x1c]
jmp 0x48c71f
push 0x100
lea ecx, [esp + 0x178]
push ecx
push eax
call fcn.00448f80
push eax
movzx eax, bx
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.004606d0
add esp, 0x1c
jmp 0x48c860
cmp bx, word [esp + 0x1c]
ja 0x48cb3f
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 0x48c8ae
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448f80
push eax
push str.getsockname___failed:__s
push esi
call fcn.004606d0
add esp, 0x18
mov ebx, dword [esp + 0x10]
mov ebp, 0x1e
cmp dword [esp + 0x28], 0
je 0x48c87e
lea eax, [esp + 0x28]
push eax
push esi
call fcn.0046f610
add esp, 8
test ebp, ebp
je 0x48cb8c
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
test al, al
je 0x48cb83
test edi, edi
je 0x48cb6a
movzx eax, al
mov eax, dword [eax*4 + 0x530fd0]
jmp 0x48cb6f
mov eax, dword [esi + 0x18]
test eax, eax
je 0x48c8c5
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x530fd0]
jmp 0x48c8ca
mov eax, 0x531230
movzx ebx, bx
push ebx
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.00460910
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x48c911
push 0x100
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00448f80
push eax
push str.socket_failure:__s
jmp 0x48c857
mov eax, dword [esi + 0x18]
test eax, eax
je 0x48c928
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x530fd0]
jmp 0x48c92d
mov eax, 0x531230
push ebx
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.00460910
push 0x2f
lea eax, [esp + 0xe0]
push eax
push ebp
call fcn.0046f050
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp byte [eax + 0x2a0], 0
jne 0x48c96a
cmp byte [eax + 0x29b], 0
je 0x48c96a
mov byte [eax + 0x2a0], 1
cmp edi, 2
je 0x48c9ca
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x4c]
nop word [eax + eax]
cmp byte [eax + 0x2a0], 0
jne 0x48c98d
test edi, edi
je 0x48c9c4
cmp edi, 1
jne 0x48c998
cmp cx, 2
jne 0x48c9c4
movzx eax, cx
sub eax, 2
je 0x48c9a5
sub eax, 0x15
jne 0x48c9c0
push dword [esp + 0x4e]
call ebp
movzx ebx, ax
test edi, edi
je 0x48ca9a
cmp edi, 1
je 0x48c9fc
mov cx, word [esp + 0x4c]
mov eax, dword [esp + 0x10]
inc edi
cmp edi, 2
jne 0x48c980
mov ebx, dword [esp + 0x2c]
mov dword [ebx + 0xa0], edi
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x4e6]
cmp al, 0x1c
je 0x48cb0c
test edi, edi
je 0x48caf3
movzx eax, al
mov eax, dword [eax*4 + 0x530fd0]
jmp 0x48caf8
mov ecx, dword [esp + 0xcc]
lea edx, [esp + 0x130]
test cl, cl
je 0x48ca37
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 0x48ca20
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.00466010
mov ebx, dword [esp + 0x40]
lea eax, [esp + 0x144]
push eax
push 0x531061
push 0x530890
push ebx
push esi
call fcn.004a0590
mov ebp, eax
add esp, 0x28
test ebp, ebp
je 0x48c9ce
push ebp
call fcn.004490f0
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.004606d0
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x48c869
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.004a0590
mov ebp, eax
add esp, 0x1c
test ebp, ebp
je 0x48c9ce
push ebp
call fcn.004490f0
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.004606d0
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x48c869
mov eax, 0x531230
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.00460910
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.00468bd0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x48c869
mov dword [esp + 0x24], 0xffffffff
jmp 0x48c869
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.004606d0
add esp, 8
jmp 0x48c860
mov eax, dword [esp + 0x30]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.004606d0
add esp, 0xc
jmp 0x48c864
mov eax, 0x531230
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.00460910
add esp, 0x10
mov byte [edi + 0x4e6], 0
jmp 0x48cbf0
cmp byte [ebx + 0x2a1], 0
je 0x48cbbb
cmp byte [esi + 0x6a2], 0
je 0x48cbbb
push 1
push ebx
call fcn.00460160
add esp, 8
test al, al
jne 0x48cbbb
push 1
push ebx
push esi
call fcn.00459600
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.00476980
mov eax, dword [esi + 0x4d4]
mov ecx, 0xea60
test eax, eax
push 0xd
cmovne ecx, eax
push 0
push ecx
push esi
call fcn.0044cd60
add esp, 0x1c
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x48cc04
push eax
push ebx
push esi
call fcn.00468f60
add esp, 0xc
mov ecx, dword [esp + 0x678]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f1532
add esp, 0x66c
ret