Function at 0x100c1c10
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x150
mov eax, dword [0x1023b4c0]
xor eax, esp
mov dword [esp + 0x14c], eax
mov eax, dword [esp + 0x154]
push ebx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x15c]
push ebp
mov ebp, dword [esp + 0x164]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x168]
push esi
mov esi, dword [esp + 0x174]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x170]
push edi
mov edi, dword [esi + 0xc]
mov ebx, dword [esi + 0x8dc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x17c]
push 0xf8
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x68]
push 0
push eax
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x68], 0x6e6b6e75
mov dword [esp + 0x6c], 0x6e776f
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esp + 0x44]
mov ecx, ebp
add esp, 0xc
mov eax, dword [edi + eax*4 + 0x150]
lea edx, [ecx + 1]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x98]
cmp eax, 5
mov dword [esp + 0x28], eax
sete byte [esp + 0x1b]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c1cc4
mov eax, dword [esi + 0x170]
sub ecx, edx
mov dword [esp + 0x40], ecx
xor ebp, ebp
xor ecx, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [edi]
mov byte [esp + 0x13], 0
cmp eax, 1
jl 0x100c1cfa
mov edx, eax
cmp eax, 0x11
jl 0x100c1daa
mov edx, eax
mov eax, dword [esp + 0x48]
cmp byte [eax], cl
mov eax, dword [edi]
jne 0x100c1daa
mov edx, eax
cmp eax, 1
je 0x100c1daa
mov dword [edi], 1
cmp byte [edi + 0x260], cl
je 0x100c1d39
push dword [esp + 0x34]
push dword [esp + 0x34]
push str.SOCKS5:_connecting_to_HTTP_proxy__s_port__d
push esi
call fcn.100b03b0
add esp, 0x10
cmp dword [esp + 0x28], 5
je 0x100c1d60
mov ebp, dword [esp + 0x40]
cmp ebp, 0xff
jbe 0x100c1d60
push ebp
push str.SOCKS5:_server_resolving_disabled_for_hostnames_of_length___255__actual_len_zu_
push esi
call fcn.100b03b0
add esp, 0xc
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x20]
test ecx, 0xfffffffa
je 0x100c1d7f
push ecx
push str.warning:_unsupported_value_passed_to_CURLOPT_SOCKS5_AUTH:__lu
push esi
call fcn.100b03b0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test cl, 1
mov byte [ebx], 5
mov eax, 0
cmovne eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
test cl, 4
je 0x100c1dbb
mov byte [esp + 0x13], 1
mov ecx, 4
mov word [ebx + 2], 0x100
jmp 0x100c1dc9
dec edx
cmp edx, 0xf
ja case.0x100c1db4.5
jmp dword [edx*4 + 0x100c26e0]
mov byte [ebx + 2], 0
mov ecx, 3
mov byte [esp + 0x13], 0
mov dword [esp + 0x20], ecx
test eax, eax
je 0x100c1dda
mov byte [ecx + ebx], 2
inc ecx
mov dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x24]
lea eax, [ecx - 2]
mov byte [ebx + 1], al
lea eax, [esp + 0x14]
push eax
push ecx
push ebx
push ebp
push esi
call fcn.100b0880
add esp, 0x14
test eax, eax
je 0x100c1dfe
cmp eax, 0x51
jne 0x100c1e68
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
mov ecx, dword [esi + 0xc]
cmp edx, eax
je 0x100c1e2f
cmp dword [ecx], 2
je 0x100c1e1c
mov dword [ecx], 2
mov edx, dword [esp + 0x14]
sub eax, edx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x14]
add eax, ebx
mov dword [edi + 8], eax
jmp 0x100c26c4
cmp dword [ecx], 4
je 0x100c1ea0
mov dword [ecx], 4
mov dword [edi + 4], 2
mov dword [edi + 8], ebx
jmp 0x100c1eb0
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
push dword [edi + 8]
push ebp
push esi
call fcn.100b0880
add esp, 0x14
test eax, eax
je 0x100c1e80
cmp eax, 0x51
je 0x100c1e80
push str.Unable_to_send_initial_SOCKS5_request.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0x1d
jmp 0x100c26c6
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x100c1ea0
sub eax, ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x14]
add dword [edi + 8], eax
jmp 0x100c26c4
mov ebp, dword [esp + 0x24]
mov dword [edi + 4], 2
mov dword [edi + 8], ebx
jmp 0x100c1eb0
mov ebp, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
push dword [edi + 8]
push ebp
call fcn.100b04b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x100c1ee9
cmp eax, 0x51
je 0x100c1f05
push str.Unable_to_receive_initial_SOCKS5_response.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0xf
jmp 0x100c26c6
test ecx, ecx
jne 0x100c1f05
push str.Connection_to_proxy_closed
push esi
call fcn.100b02e0
add esp, 8
mov eax, 3
jmp 0x100c26c6
mov eax, dword [edi + 4]
cmp ecx, eax
je 0x100c1f1d
sub eax, ecx
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
add dword [edi + 8], eax
jmp 0x100c26c4
cmp byte [ebx], 5
je 0x100c1f3a
push str.Received_invalid_version_in_initial_SOCKS5_response.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 2
jmp 0x100c26c6
mov al, byte [ebx + 1]
test al, al
je 0x100c21c9
cmp al, 2
jne 0x100c1fa2
mov eax, dword [esi + 0xc]
cmp dword [eax], 6
je case.0x100c1db4.6
mov dword [eax], 6
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100c2030
mov ebp, dword [esp + 0x44]
test ebp, ebp
je 0x100c2030
mov edx, eax
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x100c1f74
sub edx, ecx
mov ecx, ebp
mov dword [esp + 0x38], edx
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c1f86
mov eax, dword [esp + 0x3c]
sub ecx, ebp
mov dword [esp + 0x20], ecx
mov byte [ebx], 1
mov byte [ebx + 1], dl
jmp 0x100c205f
cmp al, 1
jne 0x100c1ffc
cmp byte [esp + 0x13], 0
je 0x100c1fe4
mov eax, dword [esi + 0xc]
cmp dword [eax], 5
je 0x100c1fbb
mov dword [eax], 5
push esi
push dword [esp + 0x3c]
call fcn.100dfd20
add esp, 8
test eax, eax
je 0x100c2018
push str.Unable_to_negotiate_SOCKS5_GSS_API_context.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 4
jmp 0x100c26c6
push str.SOCKS5_GSSAPI_per_message_authentication_is_not_supported.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 5
jmp 0x100c26c6
cmp al, 0xff
jne 0x100c2018
push str.No_authentication_method_was_acceptable.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0xc
jmp 0x100c26c6
push str.Undocumented_SOCKS5_mode_attempted_to_be_used_by_server.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0x20
jmp 0x100c26c6
xor edx, edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x28], 0
mov word [ebx], 1
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], edx
test eax, eax
je 0x100c2095
test edx, edx
je 0x100c2095
cmp edx, 0xff
jb 0x100c2083
push str.Excessive_user_name_length_for_proxy_auth
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0xb
jmp 0x100c26c6
push edx
push eax
lea eax, [ebx + 2]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov edx, dword [esp + 0x44]
add esp, 0xc
mov eax, dword [esp + 0x20]
lea ebp, [edx + 2]
mov ecx, dword [esp + 0x44]
mov byte [ebx + ebp], al
inc ebp
test ecx, ecx
je 0x100c20dd
test eax, eax
je 0x100c20dd
cmp eax, 0xff
jbe 0x100c20cb
push str.Excessive_password_length_for_proxy_auth
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0xa
jmp 0x100c26c6
push eax
push ecx
lea eax, [ebx + ebp]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x2c]
add esp, 0xc
add ebp, eax
mov eax, dword [esi + 0xc]
cmp dword [eax], 7
je 0x100c20ed
mov dword [eax], 7
mov dword [edi + 4], ebp
mov dword [edi + 8], ebx
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
push dword [edi + 8]
push dword [esp + 0x30]
push esi
call fcn.100b0880
add esp, 0x14
test eax, eax
je 0x100c212c
cmp eax, 0x51
je 0x100c212c
push str.Failed_to_send_SOCKS5_sub_negotiation_request.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0x1c
jmp 0x100c26c6
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x100c1e8b
mov dword [edi + 8], ebx
mov dword [edi + 4], 2
mov eax, dword [esi + 0xc]
cmp dword [eax], 8
je case.0x100c1db4.8
mov dword [eax], 8
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
push dword [edi + 8]
push dword [esp + 0x30]
call fcn.100b04b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x100c218f
cmp eax, 0x51
je 0x100c2197
push str.Unable_to_receive_SOCKS5_sub_negotiation_response.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0xe
jmp 0x100c26c6
test ecx, ecx
je 0x100c2681
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x100c1f0c
mov al, byte [ebx + 1]
test al, al
je 0x100c21c9
movzx eax, al
push eax
movzx eax, byte [ebx]
push eax
push str.User_was_rejected_by_the_SOCKS5_server___d__d_.
push esi
call fcn.100b02e0
add esp, 0x10
mov eax, 0x21
jmp 0x100c26c6
mov eax, dword [esi + 0xc]
cmp dword [eax], 9
je case.0x100c1db4.9
mov dword [eax], 9
cmp byte [esp + 0x1b], 0
je 0x100c222d
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x3c]
push ebp
push esi
call fcn.100b9d50
add esp, 0x14
cmp eax, 0xffffffff
je 0x100c23d8
mov ecx, dword [esi + 0xc]
cmp eax, 1
jne 0x100c221c
cmp dword [ecx], 0xa
je 0x100c26c4
mov dword [ecx], 0xa
jmp 0x100c26c4
cmp dword [ecx], 0xb
je 0x100c2227
mov dword [ecx], 0xb
mov ecx, dword [esp + 0x2c]
jmp 0x100c229f
mov word [ebx], 0x105
mov byte [ebx + 2], 0
jmp 0x100c23fa
push dword [esp + 0x34]
mov ebp, dword [esp + 0x34]
push ebp
push esi
call fcn.100b95f0
add esp, 0xc
mov dword [esp + 0x2c], eax
test eax, eax
je 0x100c2279
push ebp
push str.SOCKS5:_hostname__s_found
push esi
mov dword [esi + 0x9a4], eax
mov byte [esi + 0x9b8], 1
call fcn.100b03b0
mov ecx, dword [esp + 0x38]
add esp, 0xc
test ecx, ecx
jne 0x100c22a7
lea eax, [esp + 0x2c]
push eax
push esi
call fcn.100ba160
mov ecx, dword [esp + 0x34]
add esp, 8
test ecx, ecx
jne 0x100c22a7
neg eax
sbb eax, eax
and eax, 0x1b
jmp 0x100c26c6
mov ebp, dword [esp + 0x30]
test ecx, ecx
je 0x100c23c9
mov eax, dword [ecx]
mov dword [esp + 0x28], eax
test eax, eax
je 0x100c23c9
push 0x100
lea ecx, [esp + 0x60]
push ecx
push eax
call fcn.100b9d00
lea ecx, [esp + 0x68]
add esp, 0xc
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100c22d0
push dword [esp + 0x34]
sub ecx, edx
mov eax, 0x100
sub eax, ecx
push 0x102246b0
push eax
lea eax, [esp + 0x68]
add eax, ecx
push eax
call fcn.1009f940
mov eax, dword [esp + 0x38]
add esp, 0x10
mov word [ebx], 0x105
mov ebp, 3
mov byte [ebx + 2], 0
mov ecx, dword [eax + 4]
cmp ecx, 2
jne 0x100c2360
mov byte [ebx + 3], 1
mov ebp, 8
mov ecx, dword [eax + 0x18]
movzx eax, byte [ecx + 4]
mov byte [ebx + 4], al
movzx eax, byte [ecx + 5]
mov byte [ebx + 5], al
movzx eax, byte [ecx + 6]
mov byte [ebx + 6], al
movzx eax, byte [ecx + 7]
mov byte [ebx + 7], al
lea eax, [esp + 0x5c]
push eax
push str.SOCKS5_connect_to_IPv4__s__locally_resolved_
push esi
call fcn.100b03b0
add esp, 0xc
push dword [esp + 0x2c]
push esi
call fcn.100ba1f0
add esp, 8
jmp case.0x100c1db4.13
cmp ecx, 0x17
jne 0x100c23a4
xor ecx, ecx
mov byte [ebx + 3], 4
mov edx, dword [eax + 0x18]
lea ebp, [ecx + 0x14]
mov al, byte [edx + ecx + 8]
mov byte [ebx + ecx + 4], al
inc ecx
cmp ecx, 0x10
jl 0x100c2371
lea eax, [esp + 0x5c]
push eax
push str.SOCKS5_connect_to_IPv6__s__locally_resolved_
push esi
call fcn.100b03b0
add esp, 0xc
push dword [esp + 0x2c]
push esi
call fcn.100ba1f0
add esp, 8
jmp case.0x100c1db4.13
lea eax, [esp + 0x5c]
push eax
push str.SOCKS5_connection_to__s_not_supported
push esi
call fcn.100b02e0
add esp, 0xc
push dword [esp + 0x2c]
push esi
call fcn.100ba1f0
add esp, 8
jmp case.0x100c1db4.13
push ebp
push str.Failed_to_resolve___s__for_SOCKS5_connect.
push esi
call fcn.100b02e0
add esp, 0xc
mov eax, 0x1b
jmp 0x100c26c6
cmp dword [esp + 0x28], 5
mov ebp, 3
mov word [ebx], 0x105
mov byte [ebx + 2], cl
je case.0x100c1db4.13
cmp byte [edi + 0x26b], 0
je 0x100c242f
lea eax, [esp + 0x4c]
push eax
push dword [esp + 0x34]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x100c2676
movups xmm0, xmmword [esp + 0x4c]
mov byte [ebx + 3], 4
lea ebp, [eax + 0x13]
movups xmmword [ebx + 4], xmm0
jmp 0x100c2477
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x28]
push eax
push ebp
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x100c2457
mov byte [ebx + 3], al
mov ebp, 8
mov eax, dword [esp + 0x28]
mov dword [ebx + 4], eax
jmp 0x100c2477
mov eax, dword [esp + 0x40]
push eax
mov byte [ebx + 3], 3
mov byte [ebx + 4], al
lea eax, [ebx + 5]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ebp, dword [esp + 0x4c]
add esp, 0xc
add ebp, 5
push dword [esp + 0x34]
push dword [esp + 0x34]
push str.SOCKS5_connect_to__s:_d__remotely_resolved_
push esi
call fcn.100b03b0
add esp, 0x10
mov ecx, dword [esp + 0x34]
mov eax, ecx
sar eax, 8
mov byte [ebx + ebp], al
mov byte [ebx + ebp + 1], cl
cmp dword [edi + 0x510], 0
jne 0x100c250e
lea eax, [ebp + 2]
mov dword [edi + 8], ebx
mov dword [edi + 4], eax
mov eax, dword [esi + 0xc]
cmp dword [eax], 0xe
je case.0x100c1db4.14
mov dword [eax], 0xe
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
push dword [edi + 8]
push dword [esp + 0x30]
push esi
call fcn.100b0880
add esp, 0x14
test eax, eax
je 0x100c24f6
cmp eax, 0x51
je 0x100c24f6
push str.Failed_to_send_SOCKS5_connect_request.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0x1e
jmp 0x100c26c6
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x100c1e8b
cmp dword [edi + 0x510], 0
je 0x100c2526
push str.SOCKS5_GSS_API_protection_not_yet_implemented.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 6
jmp 0x100c26c6
mov dword [edi + 4], 0xa
mov dword [edi + 8], ebx
mov eax, dword [esi + 0xc]
cmp dword [eax], 0xf
je case.0x100c1db4.15
mov dword [eax], 0xf
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
push dword [edi + 8]
push dword [esp + 0x30]
call fcn.100b04b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x100c257a
cmp eax, 0x51
je 0x100c2582
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0x10
jmp 0x100c26c6
test ecx, ecx
je 0x100c2681
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x100c1f0c
cmp byte [ebx], 5
je 0x100c25aa
push str.SOCKS5_reply_has_wrong_version__version_should_be_5.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 2
jmp 0x100c26c6
mov al, byte [ebx + 1]
test al, al
je 0x100c25df
movzx edi, al
mov ebx, 0x19
push edi
push dword [esp + 0x34]
push str.Cant_complete_SOCKS5_connection_to__s.___d_
push esi
call fcn.100b02e0
add esp, 0x10
cmp edi, 9
jae 0x100c25d8
mov ebx, dword [edi*4 + 0x10223f40]
mov eax, ebx
jmp 0x100c26c6
mov al, byte [ebx + 3]
cmp al, 3
jne 0x100c25ef
movzx eax, byte [ebx + 4]
add eax, 7
jmp 0x100c2603
cmp al, 4
jne 0x100c25fa
mov eax, 0x16
jmp 0x100c2603
cmp al, 1
jne 0x100c2668
mov eax, 0xa
cmp dword [edi + 0x510], 0
jne case.0x100c1db4.16
cmp eax, 0xa
jbe 0x100c26a1
add eax, 0xfffffff6
mov dword [edi + 4], eax
lea eax, [ebx + 0xa]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
cmp dword [eax], 0x10
je case.0x100c1db4.16
mov dword [eax], 0x10
lea eax, [esp + 0x1c]
push eax
push dword [edi + 4]
push dword [edi + 8]
push dword [esp + 0x30]
call fcn.100b04b0
mov ecx, dword [esp + 0x2c]
add esp, 0x10
test eax, eax
je 0x100c267d
cmp eax, 0x51
je 0x100c2696
push str.Failed_to_receive_SOCKS5_connect_request_ack.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 0xd
jmp 0x100c26c6
push str.SOCKS5_reply_has_wrong_address_type.
push esi
call fcn.100b02e0
add esp, 8
mov eax, 1
jmp 0x100c26c6
test ecx, ecx
jne 0x100c2696
push str.connection_to_proxy_closed
push esi
call fcn.100b02e0
add esp, 8
mov eax, 3
jmp 0x100c26c6
mov eax, dword [edi + 4]
cmp ecx, eax
jne 0x100c1f0c
mov eax, dword [esi + 0xc]
cmp dword [eax], 0x11
je case.0x100c1db4.5
mov dword [eax], 0x11
push str.SOCKS5_request_granted.
push esi
call fcn.100b03b0
mov eax, dword [esp + 0x50]
add esp, 8
mov byte [eax], 1
xor eax, eax
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100efabc
add esp, 0x150
ret