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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x104230a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x600], eax
add eax, 0x2b0
push 0x2f
mov dword [ebp - 0x628], eax
lea eax, [ebp - 0x34]
push 0
push eax
mov dword [ebp - 0x608], ebx
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x60c], 0xffffffff
call fcn.101fd960
mov esi, dword [ebx + 0x538]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x61c], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], eax
mov dword [ebp - 0x618], eax
mov byte [ebp - 0x601], 1
mov dword [ebp - 0x610], eax
test esi, esi
je 0x101e1d18
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101e1ae0
sub ecx, edx
cmp ecx, 1
jbe 0x101e1d18
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101e1af7
sub ecx, edx
cmp ecx, 0x41
jae 0x101e1b0c
mov ecx, 0x41
jmp 0x101e1b1a
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101e1b11
sub ecx, edx
lea eax, [ecx + 1]
push 1
push eax
call dword [0x1042b7c0]
add esp, 8
mov dword [ebp - 0x610], eax
test eax, eax
jne 0x101e1b3b
lea ebx, [eax + 0x1b]
jmp 0x101e229e
mov al, byte [esi]
cmp al, 0x5b
jne 0x101e1b70
push 0x5d
push esi
call fcn.101fdb70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101e1bed
lea ecx, [esi + 1]
sub eax, ecx
push eax
push ecx
push dword [ebp - 0x610]
call fcn.10203940
add esp, 0xc
jmp 0x101e1bed
cmp al, 0x3a
jne 0x101e1b78
mov ebx, esi
jmp 0x101e1bed
push 0x3a
push esi
call fcn.101fdb70
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x101e1bd2
lea eax, [ebp - 0x5fc]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x101e1bbc
mov ecx, dword [ebp - 0x610]
sub ecx, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x101e1ba6
xor esi, esi
xor edx, edx
jmp 0x101e1c47
mov eax, ebx
sub eax, esi
push eax
push esi
push dword [ebp - 0x610]
call fcn.10203940
add esp, 0xc
jmp 0x101e1bed
mov ecx, dword [ebp - 0x610]
sub ecx, esi
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x101e1be0
xor esi, esi
xor edx, edx
test ebx, ebx
je 0x101e1c47
push 0x3a
push ebx
call fcn.101fdb70
mov ebx, eax
add esp, 8
xor edx, edx
test ebx, ebx
je 0x101e1c47
push 0xa
push edx
lea eax, [ebx + 1]
push eax
call fcn.101ffead
push eax
call fcn.101c39a0
push 0x2d
push ebx
movzx esi, ax
call fcn.101fdb70
add esp, 0x18
test eax, eax
je 0x101e1c45
push 0xa
inc eax
push 0
push eax
call fcn.101ffead
push eax
call fcn.101c39a0
add esp, 0x10
movzx edx, ax
jmp 0x101e1c47
mov edx, esi
xor ecx, ecx
movzx eax, dx
cmp si, dx
cmovbe ecx, eax
movzx eax, cx
xor ecx, ecx
cmp si, dx
mov dword [ebp - 0x618], eax
mov ebx, eax
movzx eax, si
cmovbe ecx, eax
mov eax, dword [ebp - 0x610]
movzx esi, cx
cmp byte [eax], 0
je 0x101e1d02
mov ebx, dword [ebp - 0x600]
lea ecx, [ebp - 0x57c]
push 0x401
push ecx
push eax
mov eax, dword [ebx + 0x40]
push dword [ebx + 0x388]
push dword [eax + 0x18]
call fcn.101ee6e0
add esp, 4
push eax
mov eax, dword [ebx + 0x40]
push dword [eax + 4]
call fcn.1026daa0
add esp, 0x18
sub eax, 0
je 0x101e1cd1
sub eax, 1
je 0x101e2299
sub eax, 1
jne 0x101e1cdf
lea ecx, [ebp - 0x57c]
mov dword [ebp - 0x61c], ecx
jmp 0x101e1ce1
mov ecx, dword [ebp - 0x610]
mov dword [ebp - 0x61c], ecx
jmp 0x101e1ce1
xor ecx, ecx
mov eax, esi
mov dword [ebp - 0x620], eax
mov eax, dword [ebp - 0x618]
movzx esi, ax
mov dword [ebp - 0x618], esi
test ecx, ecx
jne 0x101e1dc8
jmp 0x101e1d12
mov eax, esi
mov dword [ebp - 0x620], eax
mov eax, ebx
mov dword [ebp - 0x618], eax
mov ebx, dword [ebp - 0x608]
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x101e1d72
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101ac180
push eax
push str.getsockname___failed:__s
push ebx
call fcn.101c0fa0
add esp, 0x18
jmp 0x101e2299
mov ax, word [ebp - 0x5fc]
push 0x401
cmp ax, 0x17
je 0x101e1d98
lea ecx, [ebp - 0x57c]
movzx eax, ax
push ecx
lea ecx, [ebp - 0x5f8]
push ecx
push eax
jmp 0x101e1da8
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x5f4]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x101e2299
lea ecx, [ebp - 0x57c]
mov byte [ebp - 0x601], 0
mov dword [ebp - 0x61c], ecx
mov esi, dword [ebp - 0x608]
lea eax, [ebp - 0x624]
push eax
push 0
push 0
push ecx
push esi
call fcn.101c92a0
add esp, 0x14
cmp eax, 1
jne 0x101e1df8
lea eax, [ebp - 0x624]
push eax
push esi
call fcn.101b6810
add esp, 8
mov eax, dword [ebp - 0x624]
test eax, eax
je 0x101e2284
mov ebx, dword [eax]
push eax
push esi
call fcn.101c95c0
add esp, 8
test ebx, ebx
je 0x101e2284
mov dword [ebp - 0x60c], 0xffffffff
mov dword [ebp - 0x61c], 0
nop
lea eax, [ebp - 0x60c]
push eax
push 0
push ebx
push esi
call fcn.101c2530
add esp, 0x10
test eax, eax
je 0x101e1e5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, dword [ebx + 0x1c]
mov dword [ebp - 0x61c], eax
test ebx, ebx
jne 0x101e1e30
jmp 0x101e1e66
test ebx, ebx
jne 0x101e1e8c
mov eax, dword [ebp - 0x61c]
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.101ac180
push eax
push str.socket_failure:__s
push esi
call fcn.101c0fa0
add esp, 0x18
jmp 0x101e2299
push dword [ebx + 0x10]
lea eax, [ebp - 0x5fc]
push dword [ebx + 0x18]
push eax
call fcn.101fcde0
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov dword [ebp - 0x614], eax
mov eax, dword [ebp - 0x620]
cmp ax, word [ebp - 0x618]
movzx esi, ax
ja 0x101e226e
mov eax, dword [sym.imp.WS2_32.dll_htons]
push esi
call eax
push dword [ebp - 0x614]
mov word [ebp - 0x5fa], ax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x60c]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x101e1ff8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [ebp - 0x601], 0
je 0x101e1f83
cmp eax, 0x2741
jne 0x101e1f83
push 0x100
lea eax, [ebp - 0x178]
push eax
push 0x2741
call fcn.101ac180
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__on_non_local_address_failed:__s
push esi
call fcn.101c1060
add esp, 0x1c
mov dword [ebp - 0x614], 0x80
lea eax, [ebp - 0x614]
push eax
lea eax, [ebp - 0x5fc]
push eax
mov eax, dword [ebp - 0x600]
push dword [eax + 0x128]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x101e1f9c
mov eax, dword [ebp - 0x620]
movzx esi, ax
cmp si, word [ebp - 0x618]
mov byte [ebp - 0x601], 0
jmp 0x101e1eba
cmp eax, 0x2740
je 0x101e1f8f
cmp eax, 0xd
jne 0x101e1fc8
inc esi
cmp si, word [ebp - 0x618]
jmp 0x101e1eba
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101ac180
push eax
push str.getsockname___failed:__s
push esi
call fcn.101c0fa0
add esp, 0x18
jmp 0x101e2299
push 0x100
lea ecx, [ebp - 0x178]
push ecx
push eax
call fcn.101ac180
push eax
movzx eax, si
mov esi, dword [ebp - 0x608]
push eax
push str.bind_port_hu__failed:__s
push esi
call fcn.101c0fa0
add esp, 0x1c
jmp 0x101e2299
cmp si, word [ebp - 0x618]
ja 0x101e226e
lea eax, [ebp - 0x614]
mov dword [ebp - 0x614], 0x80
push eax
lea eax, [ebp - 0x5fc]
push eax
push dword [ebp - 0x60c]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x101e205f
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101ac180
mov esi, dword [ebp - 0x608]
push eax
push str.getsockname___failed:__s
push esi
call fcn.101c0fa0
add esp, 0x18
jmp 0x101e2299
push 1
push dword [ebp - 0x60c]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x101e20a3
push 0x100
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.101ac180
mov esi, dword [ebp - 0x608]
push eax
push str.socket_failure:__s
push esi
call fcn.101c0fa0
add esp, 0x18
jmp 0x101e2299
push 0x2f
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.101c9250
mov eax, dword [ebp - 0x600]
add esp, 0xc
cmp byte [eax + 0x20a], 0
jne 0x101e20d1
cmp byte [eax + 0x204], 0
je 0x101e20d1
mov byte [eax + 0x20a], 1
cmp edi, 2
je 0x101e2139
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
mov cx, word [ebp - 0x5fc]
cmp byte [eax + 0x20a], 0
jne 0x101e20f0
test edi, edi
je 0x101e212d
cmp edi, 1
jne 0x101e20fb
cmp cx, 2
jne 0x101e212d
movzx eax, cx
sub eax, 2
je 0x101e2108
sub eax, 0x15
jne 0x101e2127
push dword [ebp - 0x5fa]
call esi
movzx ebx, ax
test edi, edi
je 0x101e2217
cmp edi, 1
je 0x101e218d
mov cx, word [ebp - 0x5fc]
mov eax, dword [ebp - 0x600]
inc edi
mov dword [ebp - 0x62c], edi
cmp edi, 2
jne 0x101e20e3
mov esi, dword [ebp - 0x608]
mov eax, dword [ebp - 0x628]
mov dword [eax + 0x78], edi
lea eax, [ebp - 0x60c]
mov edi, dword [ebp - 0x600]
push eax
push 1
push edi
push esi
call fcn.101c1d20
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x101e22a4
mov ecx, dword [ebp - 0x608]
mov dword [ebp - 0x60c], 0xffffffff
mov eax, dword [ecx + 0xc]
mov dword [eax + 0x334], 0x1c
jmp 0x101e22b7
lea edx, [ebp - 0x78]
mov edi, 0x2c
lea esi, [ebp - 0x34]
mov cl, byte [esi]
test cl, cl
je 0x101e21af
cmp cl, 0x2e
movzx eax, cl
cmove eax, edi
mov byte [edx], al
inc edx
add esi, 1
jne 0x101e2198
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 sym.gcm32.dll_curl_msnprintf
mov esi, dword [ebp - 0x608]
lea eax, [ebp - 0x78]
push eax
push str.PORT
push 0x103b94ac
push dword [ebp - 0x628]
push esi
call fcn.101f6a30
mov edi, dword [ebp - 0x62c]
mov ebx, eax
add esp, 0x28
test ebx, ebx
je 0x101e213f
push ebx
call sym.gcm32.dll_curl_easy_strerror
push eax
push str.Failure_sending_PORT_command:__s
push esi
call fcn.101c0fa0
add esp, 0x10
jmp 0x101e229e
mov esi, dword [ebp - 0x608]
movzx eax, bx
push eax
lea eax, [ebp - 0x34]
push eax
xor eax, eax
cmp word [ebp - 0x5fc], 2
setne al
inc eax
push eax
push str.EPRT
push str._s__d_s_hu
push dword [ebp - 0x628]
push esi
call fcn.101f6a30
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x101e213f
push ebx
call sym.gcm32.dll_curl_easy_strerror
push eax
push str.Failure_sending_EPRT_command:__s
push esi
call fcn.101c0fa0
add esp, 0x10
jmp 0x101e229e
mov esi, dword [ebp - 0x608]
push str.bind___failed__we_ran_out_of_ports
push esi
call fcn.101c0fa0
add esp, 8
jmp 0x101e2299
mov eax, dword [ebp - 0x61c]
push eax
push str.failed_to_resolve_the_address_provided_to_PORT:__s
push esi
call fcn.101c0fa0
add esp, 0xc
mov ebx, 0x1e
mov edi, dword [ebp - 0x600]
mov ecx, dword [ebp - 0x608]
mov eax, dword [ecx + 0xc]
mov dword [eax + 0x334], 0
mov eax, dword [ebp - 0x60c]
cmp eax, 0xffffffff
je 0x101e22cd
push eax
push edi
push ecx
call fcn.101c1ca0
add esp, 0xc
push dword [ebp - 0x610]
call dword [0x1042b7b4]
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100a9f90
mov esp, ebp
pop ebp
ret