Function at 0x452590
Capabilities:
Convert ip address from string
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x65c
mov eax, dword [0x517728]
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 + 0x18], eax
add eax, 0x318
mov dword [esp + 0x38], eax
lea eax, [esp + 0xc4]
push eax
mov dword [esp + 0x44], esi
mov dword [esp + 0x34], 0x1e
mov dword [esp + 0x30], 0xffffffff
call fcn.004bacf0
mov ebp, dword [esi + 0x564]
add esp, 0xc
xor edi, edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x17], 1
mov dword [esp + 0x34], 0
test ebp, ebp
je 0x4527ed
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x452628
sub ecx, edx
cmp ecx, 1
jbe 0x4527ed
mov al, byte [ebp]
cmp al, 0x5b
jne 0x452667
lea eax, [ebp + 1]
push 0x5d
push eax
mov dword [esp + 0x20], eax
call fcn.004bae50
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x45269f
mov eax, dword [esp + 0x18]
mov edi, ebp
sub edi, eax
mov dword [esp + 0x34], eax
jmp 0x4526a5
cmp al, 0x3a
je 0x4526a5
push 0x3a
push ebp
call fcn.004bae50
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], ebp
test eax, eax
je 0x4526fe
mov edi, eax
lea eax, [esp + 0x44]
push eax
push ebp
push 0x17
sub edi, ebp
call dword [sym.imp.WS2_32.dll_inet_pton]
lea ebp, [eax - 1]
neg ebp
sbb ebp, ebp
and ebp, dword [esp + 0x18]
xor edx, edx
test ebp, ebp
je 0x45270e
push 0x3a
push ebp
call fcn.004bae50
add esp, 8
mov dword [esp + 0x18], eax
xor edx, edx
xor ebp, ebp
test eax, eax
je 0x452710
push 0xa
inc eax
push ebp
push eax
call fcn.004c7efa
push eax
call fcn.00431980
push 0x2d
push dword [esp + 0x2c]
movzx ebp, ax
call fcn.004bae50
add esp, 0x18
test eax, eax
je 0x4526fa
push 0xa
inc eax
push 0
push eax
call fcn.004c7efa
push eax
call fcn.00431980
add esp, 0x10
movzx edx, ax
jmp 0x452710
mov edx, ebp
jmp 0x452710
mov edi, ebp
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x452703
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 0x4527dc
cmp edi, 0x32
jae 0x45290d
push edi
push dword [esp + 0x38]
lea eax, [esp + 0xf4]
push eax
call fcn.004baf80
add esp, 0xc
mov byte [esp + edi + 0xec], 0
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x264]
push 0x401
push eax
lea eax, [esp + 0xf4]
push eax
mov eax, dword [edi + 0x2c]
push dword [edi + 0x3e8]
add eax, 0x10
push eax
call fcn.00460320
add esp, 4
push eax
mov eax, dword [edi + 0x2c]
push dword [eax]
call fcn.00404fe0
add esp, 0x18
sub eax, 0
je 0x4527b6
sub eax, 1
je 0x452d9f
sub eax, 1
jne 0x4527bf
lea edi, [esp + 0x264]
jmp 0x4527c1
lea edi, [esp + 0xec]
jmp 0x4527c1
xor edi, edi
mov eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x45287e
jmp 0x4527ed
mov eax, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x1c], eax
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x24], 0x80
push eax
push dword [ebp + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x452840
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00440a30
push eax
push str.getsockname___failed:__s
push esi
call fcn.0042e230
add esp, 0x18
jmp 0x452911
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 sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x452911
lea edi, [esp + 0x264]
mov byte [esp + 0x17], 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push edi
push esi
call fcn.00438180
add esp, 0x14
cmp eax, 1
jne 0x4528a4
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.00422df0
add esp, 8
mov ebp, dword [esp + 0x2c]
test ebp, ebp
je 0x452d8b
mov ebp, dword [ebp]
test ebp, ebp
je 0x452d8b
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x14]
movzx eax, byte [eax + 0x3f2]
push eax
push 0
push ebp
push esi
call fcn.00434420
add esp, 0x14
test eax, eax
je 0x45295b
call edi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x4528c1
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.00440a30
push eax
push str.socket_failure:__s
push esi
call fcn.0042e230
add esp, 0x18
mov ebp, dword [esp + 0x10]
mov edi, 0x1e
cmp dword [esp + 0x2c], 0
je 0x45292b
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.004386e0
add esp, 8
test edi, edi
je 0x452dd5
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x3c6]
test al, al
je 0x452dca
test edi, edi
je 0x452db1
movzx eax, al
mov eax, dword [eax*4 + 0x4f1d98]
jmp 0x452db6
mov eax, dword [esi + 0x18]
test eax, eax
je 0x452972
movzx eax, byte [eax + 0x3c6]
mov eax, dword [eax*4 + 0x4f1d98]
jmp 0x452977
mov eax, 0x4f1fc8
push eax
push str.__s__ftp_state_use_port____opened_socket
push esi
call fcn.0042e470
push dword [ebp + 0x10]
lea eax, [esp + 0x4c]
push dword [ebp + 0x18]
push eax
call fcn.004baf80
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x18]
cmp ax, word [esp + 0x1c]
movzx edi, ax
ja 0x452d78
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 0x452a9a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [esp + 0x17], 0
je 0x452a58
cmp eax, 0x2741
jne 0x452a58
push 0x100
lea eax, [esp + 0x168]
push eax
push 0x2741
call fcn.00440a30
push eax
movzx eax, di
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.0042e300
add esp, 0x1c
mov dword [esp + 0x20], 0x80
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x452ac5
mov eax, dword [esp + 0x18]
movzx edi, ax
cmp di, word [esp + 0x1c]
mov byte [esp + 0x17], 0
jmp 0x4529a9
cmp eax, 0x2740
je 0x452a64
cmp eax, 0xd
jne 0x452a6f
inc edi
cmp di, word [esp + 0x1c]
jmp 0x4529a9
push 0x100
lea ecx, [esp + 0x168]
push ecx
push eax
call fcn.00440a30
push eax
movzx eax, di
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.0042e230
add esp, 0x1c
jmp 0x45290d
cmp di, word [esp + 0x1c]
ja 0x452d78
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
je 0x452ae9
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00440a30
push eax
push str.getsockname___failed:__s
jmp 0x452904
mov eax, dword [esi + 0x18]
test eax, eax
je 0x452b00
movzx eax, byte [eax + 0x3c6]
mov eax, dword [eax*4 + 0x4f1d98]
jmp 0x452b05
mov eax, 0x4f1fc8
movzx edi, di
push edi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push esi
call fcn.0042e470
add esp, 0x10
push 1
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x452b40
push 0x100
lea eax, [esp + 0x168]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4528f8
mov eax, dword [esi + 0x18]
test eax, eax
je 0x452b57
movzx eax, byte [eax + 0x3c6]
mov eax, dword [eax*4 + 0x4f1d98]
jmp 0x452b5c
mov eax, 0x4f1fc8
push edi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push esi
call fcn.0042e470
push 0x2f
lea eax, [esp + 0xd0]
push eax
push ebp
call fcn.00438140
mov edi, dword [esp + 0x2c]
add esp, 0x1c
cmp byte [edi + 0x2a0], 0
jne 0x452b99
cmp byte [edi + 0x29b], 0
je 0x452b99
mov byte [edi + 0x2a0], 1
lea eax, [esp + 0x24]
push eax
push 1
push edi
push esi
call fcn.00434070
add esp, 0x10
mov dword [esp + 0x28], eax
test eax, eax
jne 0x452da6
mov dword [esp + 0x24], 0xffffffff
cmp ebx, 2
je 0x452c1a
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x3c]
nop
cmp byte [edi + 0x2a0], 0
jne 0x452bdd
test ebx, ebx
je 0x452c14
cmp ebx, 1
jne 0x452be8
cmp cx, 2
jne 0x452c14
movzx eax, cx
sub eax, 2
je 0x452bf5
sub eax, 0x15
jne 0x452c14
push dword [esp + 0x3e]
call ebp
movzx edi, ax
test ebx, ebx
je 0x452cee
cmp ebx, 1
je 0x452c4c
mov cx, word [esp + 0x3c]
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, 2
jne 0x452bd0
mov ebp, dword [esp + 0x30]
mov dword [ebp + 0xa0], ebx
mov edi, dword [esi + 0x18]
mov al, byte [edi + 0x3c6]
cmp al, 0x1c
je 0x452d64
test edi, edi
je 0x452d4b
movzx eax, al
mov eax, dword [eax*4 + 0x4f1d98]
jmp 0x452d50
mov ecx, dword [esp + 0xbc]
lea edx, [esp + 0x120]
test cl, cl
je 0x452c87
lea ebp, [esp + 0xbc]
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 0x452c70
mov esi, dword [esp + 0x38]
movzx ecx, di
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00442210
mov ebp, dword [esp + 0x44]
lea eax, [esp + 0x134]
push eax
push 0x4f1e45
push 0x4f1700
push ebp
push esi
call fcn.00464400
mov edi, eax
add esp, 0x28
mov dword [esp + 0x28], edi
test edi, edi
je 0x452c1e
push edi
call fcn.00440b20
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.0042e230
mov ebp, dword [esp + 0x20]
add esp, 0x10
jmp 0x452916
mov ebp, dword [esp + 0x30]
movzx eax, di
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 ebp
push esi
call fcn.00464400
mov edi, eax
add esp, 0x1c
mov dword [esp + 0x28], edi
test edi, edi
je 0x452c1e
push edi
call fcn.00440b20
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.0042e230
mov ebp, dword [esp + 0x20]
add esp, 0x10
jmp 0x452916
mov eax, 0x4f1fc8
push str.PORT
push eax
push str.__s_______s_
push esi
call fcn.0042e470
add esp, 0x10
mov ebp, dword [esp + 0x10]
mov byte [edi + 0x3c6], 0x1c
mov edi, dword [esp + 0x28]
jmp 0x452916
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.0042e230
add esp, 8
jmp 0x45290d
push edi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.0042e230
add esp, 0xc
jmp 0x45290d
mov ebp, edi
jmp 0x452911
mov ebp, edi
mov edi, dword [esp + 0x28]
jmp 0x452916
mov eax, 0x4f1fc8
push str.STOP
push eax
push str.__s_______s_
push esi
call fcn.0042e470
add esp, 0x10
mov byte [edi + 0x3c6], 0
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
je 0x452de9
push eax
push ebp
push esi
call fcn.00434400
add esp, 0xc
mov ecx, dword [esp + 0x668]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b90ac
add esp, 0x65c
ret