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

Disassembly:
sub esp, 0x65c
mov eax, dword [0x49b3f4]
xor eax, esp
mov dword [esp + 0x658], eax
push ebx
mov ebx, dword [esp + 0x668]
push ebp
push esi
mov esi, dword [esp + 0x66c]
push edi
push 0x2f
push 0
mov eax, dword [esi + 0x18]
mov dword [esp + 0x30], eax
add eax, 0x3f0
mov dword [esp + 0x34], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x24], 0x1e
mov dword [esp + 0x30], 0xffffffff
call sub.VCRUNTIME140.dll_memset
mov ebp, dword [esi + 0x55c]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x34], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x30], 0
test ebp, ebp
je 0x460efa
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460d28
sub ecx, edx
cmp ecx, 1
jbe 0x460efa
mov al, byte [ebp]
cmp al, 0x5b
jne 0x460d67
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x1c], eax
call sub.VCRUNTIME140.dll_strchr
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x460da5
mov eax, dword [esp + 0x14]
mov edi, ebp
sub edi, eax
mov dword [esp + 0x30], eax
jmp 0x460da5
cmp al, 0x3a
je 0x460dab
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], ebp
test eax, eax
je 0x460e06
mov edi, eax
lea eax, [esp + 0x44]
push eax
push ebp
push 0x17
sub edi, ebp
call fcn.00453e70
add esp, 0xc
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x14]
xor edx, edx
test ebp, ebp
je 0x460e1b
push 0x3a
push ebp
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x14], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x460e1d
push 0xa
inc eax
push ebp
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.0043eb30
push 0x2d
push dword [esp + 0x28]
movzx ebp, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x460e02
push 0xa
inc eax
push 0
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
push eax
call fcn.0043eb30
add esp, 0x10
movzx edx, ax
jmp 0x460e1d
mov edx, ebp
jmp 0x460e1d
mov edi, ebp
lea ecx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x460e10
sub edi, 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 edi, edi
je 0x460ee9
cmp edi, 0x32
jae 0x461454
push edi
push dword [esp + 0x34]
lea eax, [esp + 0xf4]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esp + edi + 0xec], 0
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x264]
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x24]
push dword [edi + 0x4c8]
add eax, 0x10
push eax
call fcn.0047bd40
add esp, 4
push eax
mov eax, dword [edi + 0x24]
push dword [eax]
call fcn.0042fbe0
add esp, 0x18
sub eax, 0
je 0x460ec3
sub eax, 1
je 0x461454
sub eax, 1
jne 0x460ecc
lea edi, [esp + 0x264]
jmp 0x460ece
lea edi, [esp + 0xec]
jmp 0x460ece
xor edi, edi
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx ebp, ax
mov dword [esp + 0x1c], ebp
test edi, edi
jne 0x460f8e
jmp 0x460efa
mov eax, ebp
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x460f4d
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0044e1f0
push eax
push str.getsockname___failed:__s
push esi
call fcn.0043b8f0
add esp, 0x18
jmp 0x461454
cmp word [esp + 0x3c], 0x17
lea edx, [esp + 0x44]
movzx eax, word [esp + 0x3c]
lea ecx, [esp + 0x40]
cmove ecx, edx
lea edx, [esp + 0x264]
push 0x401
push edx
push ecx
push eax
call fcn.004715b0
add esp, 0x10
test eax, eax
je 0x461454
lea edi, [esp + 0x264]
mov byte [esp + 0x13], 0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push edi
push esi
call fcn.00445280
add esp, 0x14
cmp eax, 1
jne 0x460fb4
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0042fe00
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x461445
mov ebp, dword [eax]
push eax
push esi
call fcn.00445820
add esp, 8
test ebp, ebp
je 0x461445
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop word [eax + eax]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
movzx eax, byte [eax + 0x4d2]
push eax
push 0
push ebp
push esi
call fcn.004700c0
add esp, 0x14
test eax, eax
je 0x461031
call edi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x460fe0
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0044e1f0
push eax
push str.socket_failure:__s
push esi
call fcn.0043b8f0
add esp, 0x18
jmp 0x461454
mov eax, dword [esi + 0x18]
test eax, eax
je 0x461048
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x48c760]
jmp 0x46104d
mov eax, 0x48c9e0
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.0043bb30
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
cmp ax, word [esp + 0x1c]
movzx edi, ax
ja 0x461435
mov eax, dword [sym.imp.WS2_32.dll_htons]
push edi
call eax
push dword [esp + 0x20]
movzx eax, ax
mov word [esp + 0x42], ax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x461170
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x13], 0
je 0x46112e
cmp eax, 0x2741
jne 0x46112e
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.0044e1f0
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0043b9c0
add esp, 0x1c
mov dword [esp + 0x20], 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x460f20
mov eax, dword [esp + 0x14]
movzx edi, ax
cmp di, word [esp + 0x1c]
mov byte [esp + 0x13], 0
jmp 0x46107f
cmp eax, 0x2740
je 0x46113a
cmp eax, 0xd
jne 0x461145
inc edi
cmp di, word [esp + 0x1c]
jmp 0x46107f
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.0044e1f0
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0043b8f0
add esp, 0x1c
jmp 0x461454
cmp di, word [esp + 0x1c]
ja 0x461435
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0x80
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x460f20
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4611b6
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x48c760]
jmp 0x4611bb
mov eax, 0x48c9e0
movzx edi, di
push edi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.0043bb30
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x46120b
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0044e1f0
push eax
push str.socket_failure:__s
push esi
call fcn.0043b8f0
add esp, 0x18
jmp 0x461454
mov eax, dword [esi + 0x18]
test eax, eax
je 0x461222
movzx eax, byte [eax + 0x49e]
mov eax, dword [eax*4 + 0x48c760]
jmp 0x461227
mov eax, 0x48c9e0
push edi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.0043bb30
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebp
call fcn.00445230
mov ebp, dword [esp + 0x44]
add esp, 0x1c
cmp byte [ebp + 0x251], 0
jne 0x461264
cmp byte [ebp + 0x24c], 0
je 0x461264
mov byte [ebp + 0x251], 1
lea eax, [esp + 0x24]
push eax
push 1
push ebp
push esi
call fcn.0046fe70
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
test ecx, ecx
jne 0x461454
mov dword [esp + 0x24], 0xffffffff
cmp ebx, 2
je 0x4612ee
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop dword [eax + eax]
cmp byte [ebp + 0x251], 0
jne 0x4612ad
test ebx, ebx
je 0x4612e4
cmp ebx, 1
jne 0x4612b8
cmp cx, 2
jne 0x4612e4
movzx eax, cx
sub eax, 2
je 0x4612c5
sub eax, 0x15
jne 0x4612e4
push dword [esp + 0x3e]
call edi
movzx ebp, ax
test ebx, ebx
je 0x4613b5
cmp ebx, 1
je 0x461324
mov cx, word [esp + 0x3c]
mov ebp, dword [esp + 0x28]
inc ebx
cmp ebx, 2
jne 0x4612a0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x2c]
mov dword [edi + 0xa0], ebx
mov edi, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
mov al, byte [edi + 0x49e]
cmp al, 0x1c
je 0x461428
test edi, edi
je 0x46140b
movzx eax, al
mov eax, dword [eax*4 + 0x48c760]
jmp 0x461410
lea edx, [esp + 0x120]
mov esi, 0x2c
lea edi, [esp + 0xbc]
mov cl, byte [edi]
test cl, cl
je 0x46134e
cmp cl, 0x2e
movzx eax, cl
cmove eax, esi
mov byte [edx], al
inc edx
add edi, 1
jne 0x461337
movzx ecx, bp
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00442b50
mov edi, dword [esp + 0x40]
lea eax, [esp + 0x134]
mov esi, dword [esp + 0x4c]
push eax
push 0x48c7f1
push 0x48c2a8
push edi
push esi
call fcn.0047a790
mov ecx, eax
add esp, 0x28
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4612f2
push ecx
call fcn.0044e360
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0043b8f0
add esp, 0x10
jmp 0x461454
mov edi, dword [esp + 0x2c]
movzx eax, bp
push eax
lea eax, [esp + 0xc0]
push eax
xor eax, eax
cmp word [esp + 0x44], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push edi
push esi
call fcn.0047a790
mov ecx, eax
add esp, 0x1c
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4612f2
push ecx
call fcn.0044e360
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0043b8f0
add esp, 0x10
jmp 0x461454
mov eax, 0x48c9e0
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.0043bb30
mov ecx, dword [esp + 0x28]
add esp, 0x10
mov byte [edi + 0x49e], 0x1c
test ecx, ecx
je 0x461495
jmp 0x461454
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0043b8f0
add esp, 8
jmp 0x461454
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0043b8f0
add esp, 0xc
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x49e]
test al, al
je 0x46148a
test edi, edi
je 0x461471
movzx eax, al
mov eax, dword [eax*4 + 0x48c760]
jmp 0x461476
mov eax, 0x48c9e0
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.0043bb30
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov byte [edi + 0x49e], 0
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x4614b2
push eax
push dword [esp + 0x2c]
push esi
call fcn.00470090
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x4614b4
mov eax, ecx
mov ecx, dword [esp + 0x668]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0047e496
add esp, 0x65c
ret