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

Disassembly:
sub esp, 0x660
mov eax, dword [0x4764c0]
xor eax, esp
mov dword [esp + 0x65c], eax
push ebx
mov ebx, dword [esp + 0x66c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x674]
push 0x2e
push 0
mov dword [esp + 0x44], edi
mov esi, dword [edi + 0x18]
mov dword [esp + 0x2c], 0x1e
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 0xffffffff
lea eax, [esi + 0x438]
mov byte [esp + 0xc8], 0
mov dword [esp + 0x3c], eax
lea eax, [esp + 0xc9]
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi + 0x574]
add esp, 0xc
xor ebp, ebp
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x13], 1
mov dword [esp + 0x38], 0
test ecx, ecx
je 0x443ecc
mov edx, ecx
lea eax, [edx + 1]
mov dword [esp + 0x14], eax
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x443cf0
sub edx, dword [esp + 0x14]
cmp edx, 1
jbe 0x443ecc
mov al, byte [ecx]
cmp al, 0x5b
jne 0x443d35
lea ebp, [ecx + 1]
mov esi, ebp
push 0x5d
push esi
call sub.VCRUNTIME140.dll_strchr
mov ecx, eax
add esp, 8
xor eax, eax
test ecx, ecx
cmove ebp, eax
mov eax, ecx
mov dword [esp + 0x38], ebp
sub eax, esi
mov ebp, ecx
neg ebp
sbb ebp, ebp
and ebp, eax
jmp 0x443d6d
cmp al, 0x3a
je 0x443d75
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
mov eax, dword [esp + 0x2c]
mov ebp, esi
mov dword [esp + 0x38], eax
test ebp, ebp
je 0x443dce
lea ecx, [esp + 0x48]
sub ebp, eax
push ecx
push eax
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
lea ecx, [eax - 1]
neg ecx
sbb ecx, ecx
and ecx, esi
xor esi, esi
xor edx, edx
test ecx, ecx
je 0x443de1
push 0x3a
push ecx
call sub.VCRUNTIME140.dll_strchr
add esp, 8
mov dword [esp + 0x2c], eax
xor esi, esi
xor edx, edx
test eax, eax
je 0x443de1
push 0xa
push edx
inc eax
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.00407120
push 0x2d
push dword [esp + 0x40]
movzx esi, ax
call sub.VCRUNTIME140.dll_strchr
add esp, 0x18
test eax, eax
je 0x443dca
push 0xa
inc eax
push 0
push eax
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtoul
push eax
call fcn.00407120
add esp, 0x10
movzx edx, ax
jmp 0x443de1
mov edx, esi
jmp 0x443de1
mov ebp, eax
lea ecx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x443dd3
sub ebp, ecx
xor esi, esi
xor edx, edx
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
mov dword [esp + 0x1c], eax
cmp si, dx
movzx eax, si
cmovbe ecx, eax
movzx eax, cx
mov dword [esp + 0x2c], eax
test ebp, ebp
je 0x443eb6
cmp ebp, 0x32
jae 0x443fec
push ebp
push dword [esp + 0x3c]
lea eax, [esp + 0xf8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x274]
add esp, 0xc
mov byte [esp + ebp + 0xf0], 0
push 0x401
push eax
lea eax, [esp + 0xf8]
push eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x50c]
add eax, 0x10
push eax
call fcn.00451850
add esp, 4
push eax
mov eax, dword [esi + 0x2c]
push dword [eax]
call fcn.0040cfd0
add esp, 0x18
sub eax, 0
je 0x443e8b
sub eax, 1
je 0x443fec
sub eax, 1
jne 0x443e94
lea esi, [esp + 0x268]
jmp 0x443e96
lea esi, [esp + 0xf0]
jmp 0x443e96
xor esi, esi
mov eax, dword [esp + 0x2c]
movzx ebp, ax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], ebp
movzx ebp, ax
mov dword [esp + 0x1c], ebp
test esi, esi
jne 0x443f5b
jmp 0x443ec8
movzx ecx, ax
mov eax, dword [esp + 0x1c]
movzx eax, ax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x443f12
push 0x100
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00430050
push eax
push str.getsockname___failed:__s
jmp 0x443fe3
mov ax, word [esp + 0x40]
cmp ax, 0x17
je 0x443f26
lea ecx, [esp + 0x44]
movzx eax, ax
jmp 0x443f2f
lea ecx, [esp + 0x48]
mov eax, 0x17
push 0x401
lea edx, [esp + 0x26c]
movzx eax, ax
push edx
push ecx
push eax
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x443fec
xor al, al
lea esi, [esp + 0x268]
mov byte [esp + 0x13], al
lea eax, [esp + 0x28]
push eax
push 0
push 0
push esi
push edi
call fcn.00426a80
add esp, 0x14
cmp eax, 1
jne 0x443f81
lea eax, [esp + 0x28]
push eax
push edi
call fcn.0040d1c0
add esp, 8
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x444434
mov ebp, dword [ebp]
test ebp, ebp
je 0x444434
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x516]
push eax
push 0
push ebp
push edi
call fcn.00420e60
add esp, 0x14
test eax, eax
je 0x444036
call esi
mov ebp, dword [ebp + 0x1c]
test ebp, ebp
jne 0x443fa0
push 0x100
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.00430050
push eax
push str.socket_failure:__s
push edi
call fcn.00419ee0
add esp, 0x18
mov esi, 0x1e
cmp dword [esp + 0x28], 0
je 0x444006
lea eax, [esp + 0x28]
push eax
push edi
call fcn.00426fe0
add esp, 8
test esi, esi
je 0x44446c
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4e6]
test al, al
je 0x444461
test esi, esi
je 0x444448
movzx eax, al
mov eax, dword [eax*4 + 0x46b790]
jmp 0x44444d
mov eax, dword [edi + 0x18]
test eax, eax
je 0x44404d
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x46b790]
jmp 0x444052
mov eax, 0x46b9f4
push eax
push str.__s__ftp_state_use_port____opened_socket
push edi
call fcn.0041a120
push dword [ebp + 0x10]
lea eax, [esp + 0x50]
push dword [ebp + 0x18]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0x18
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
movzx esi, ax
cmp ax, word [esp + 0x1c]
ja 0x444421
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [esp + 0x14]
mov word [esp + 0x46], ax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x444173
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov cl, byte [esp + 0x13]
test cl, cl
je 0x44412d
cmp eax, 0x2741
jne 0x44412d
push 0x100
lea eax, [esp + 0x16c]
push eax
push 0x2741
call fcn.00430050
push eax
movzx eax, si
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push edi
call fcn.00419fb0
add esp, 0x1c
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x44]
push eax
mov eax, dword [esp + 0x20]
push dword [eax + 0x1a8]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x443eee
mov eax, dword [esp + 0x30]
movzx esi, ax
xor al, al
mov byte [esp + 0x13], al
jmp 0x44408a
cmp eax, 0x2740
je 0x444139
cmp eax, 0xd
jne 0x444148
inc esi
mov byte [esp + 0x13], cl
movzx eax, si
mov esi, eax
jmp 0x44407f
push 0x100
lea ecx, [esp + 0x16c]
push ecx
push eax
call fcn.00430050
push eax
movzx eax, si
push eax
push str.bind_port_hu__failed:__s
push edi
call fcn.00419ee0
add esp, 0x1c
jmp 0x443fec
cmp si, word [esp + 0x1c]
ja 0x444421
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x80
push eax
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x28]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x443eee
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4441b9
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x46b790]
jmp 0x4441be
mov eax, 0x46b9f4
movzx esi, si
push esi
push eax
push str.__s__ftp_state_use_port____socket_bound_to_port__d
push edi
call fcn.0041a120
add esp, 0x10
push 1
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4441f9
push 0x100
lea eax, [esp + 0x16c]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x443fd7
mov eax, dword [edi + 0x18]
test eax, eax
je 0x444210
movzx eax, byte [eax + 0x4e6]
mov eax, dword [eax*4 + 0x46b790]
jmp 0x444215
mov eax, 0x46b9f4
push esi
push eax
push str.__s__ftp_state_use_port____listening_on__d
push edi
call fcn.0041a120
push 0x2f
lea eax, [esp + 0xd4]
push eax
push ebp
call fcn.00426a30
mov esi, dword [esp + 0x34]
add esp, 0x1c
cmp byte [esi + 0x2a0], 0
jne 0x444252
cmp byte [esi + 0x29b], 0
je 0x444252
mov byte [esi + 0x2a0], 1
lea eax, [esp + 0x20]
push eax
push 1
push esi
push edi
call fcn.00420ab0
add esp, 0x10
mov dword [esp + 0x24], eax
test eax, eax
jne 0x444418
mov dword [esp + 0x20], 0xffffffff
cmp ebx, 2
je 0x4442d1
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [esp + 0x40]
cmp byte [esi + 0x2a0], 0
jne 0x444294
test ebx, ebx
je 0x4442cb
cmp ebx, 1
jne 0x44429f
cmp cx, 2
jne 0x4442cb
movzx eax, cx
sub eax, 2
je 0x4442ac
sub eax, 0x15
jne 0x4442cb
push dword [esp + 0x42]
call ebp
movzx esi, ax
test ebx, ebx
je 0x44439f
cmp ebx, 1
je 0x444303
mov cx, word [esp + 0x40]
mov esi, dword [esp + 0x18]
inc ebx
cmp ebx, 2
jne 0x444287
mov ebp, dword [esp + 0x34]
mov dword [ebp + 0xa0], ebx
mov esi, dword [edi + 0x18]
mov al, byte [esi + 0x4e6]
cmp al, 0x1c
je 0x444411
test esi, esi
je 0x4443f8
movzx eax, al
mov eax, dword [eax*4 + 0x46b790]
jmp 0x4443fd
mov cl, byte [esp + 0xc0]
lea edx, [esp + 0x124]
test cl, cl
je 0x44433c
lea ebp, [esp + 0xc0]
mov eax, edx
sub ebp, eax
mov edi, 0x2c
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
mov cl, byte [edx + ebp]
test cl, cl
jne 0x444325
mov edi, dword [esp + 0x3c]
movzx ecx, si
movzx eax, cl
push eax
shr ecx, 8
push ecx
push str.__d__d
push 0x14
push edx
mov byte [edx], 0
call fcn.00422c40
mov ebp, dword [esp + 0x48]
lea eax, [esp + 0x138]
push eax
push 0x46b821
push 0x46b038
push ebp
push edi
call fcn.00459290
mov esi, eax
add esp, 0x28
mov dword [esp + 0x24], esi
test esi, esi
je 0x4442d5
push esi
call fcn.004301c0
push eax
push str.Failure_sending_PORT_command:__s
push edi
call fcn.00419ee0
add esp, 0x10
jmp 0x443ff1
mov ebp, dword [esp + 0x34]
movzx eax, si
push eax
lea eax, [esp + 0xc4]
push eax
xor eax, eax
cmp word [esp + 0x48], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push ebp
push edi
call fcn.00459290
mov esi, eax
add esp, 0x1c
mov dword [esp + 0x24], esi
test esi, esi
je 0x4442d5
push esi
call fcn.004301c0
push eax
push str.Failure_sending_EPRT_command:__s
push edi
call fcn.00419ee0
add esp, 0x10
jmp 0x443ff1
mov eax, 0x46b9f4
push str.PORT
push eax
push str.__s_______s_
push edi
call fcn.0041a120
add esp, 0x10
mov byte [esi + 0x4e6], 0x1c
mov esi, dword [esp + 0x24]
jmp 0x443ff1
push str.bind___failed__we_ran_out_of_ports
push edi
call fcn.00419ee0
add esp, 8
jmp 0x443fec
push esi
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push edi
call fcn.00419ee0
add esp, 0xc
jmp 0x443fec
mov eax, 0x46b9f4
push str.STOP
push eax
push str.__s_______s_
push edi
call fcn.0041a120
add esp, 0x10
mov byte [esi + 0x4e6], 0
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
je 0x444483
push eax
push dword [esp + 0x1c]
push edi
call fcn.00420e40
add esp, 0xc
mov ecx, dword [esp + 0x66c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045fb12
add esp, 0x660
ret