Function at 0x1001f010
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1007e7e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
lea edx, [ecx + 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x18], 0
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], eax
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001f050
sub ecx, edx
cmp ecx, 7
jb 0x1001f0b3
lea eax, [ebx + ecx]
mov dword [ebp - 0x20], eax
add eax, 0xfffffffa
push str..onion
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001f091
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff9
push str..onion.
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1001f0b3
push str.Not_resolving_.onion_address__RFC_7686_
push edi
call fcn.10010ab0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
mov eax, dword [ebp - 0x24]
mov byte [eax + 0x259], 0
cmp dword [edi + 0x84], 0
je 0x1001f0dc
push 2
push 3
push edi
call fcn.1003e8f0
add esp, 0xc
push esi
push ebx
push edi
call fcn.1001f5e0
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1001f10a
push ebx
push 0x1006ecb0
push edi
call fcn.10010b70
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x1c], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x84], 0
je 0x1001f11e
push 3
push edi
call fcn.1003e930
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x1001f281
cmp dword [edi + 0x63c], 0
mov dword [ebp - 0x20], 0
je 0x1001f16e
push 1
push edi
call fcn.100307e0
push dword [edi + 0x640]
mov eax, dword [edi + 0x63c]
push 0
push dword [edi + 0x928]
call eax
push 0
push edi
mov esi, eax
call fcn.100307e0
add esp, 0x1c
test esi, esi
jne 0x1001f09f
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x30]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001f1ad
push esi
push ebx
lea eax, [ebp - 0x30]
push eax
push 2
call fcn.1000da20
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1001f29f
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100526c8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001f1c8
push esi
push ebx
lea eax, [ebp - 0x14]
push eax
push 0x17
jmp 0x1001f187
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0x3af], 2
jne 0x1001f1e5
push edi
call fcn.1001ea20
add esp, 4
test al, al
je 0x1001f09f
push str.localhost
push ebx
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001f24c
push str..localhost
push ebx
call fcn.1001fbc0
add esp, 8
test al, al
jne 0x1001f24c
cmp byte [ebp + 0x14], al
je 0x1001f227
cmp byte [edi + 0x69e], al
je 0x1001f227
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call fcn.10011af0
add esp, 0x10
jmp 0x1001f256
push dword [ebp - 0x24]
push edi
call fcn.1001fc10
add esp, 8
test al, al
je 0x1001f09f
lea eax, [ebp - 0x20]
push eax
push esi
push ebx
push edi
call fcn.1001e670
add esp, 0x10
jmp 0x1001f256
push ebx
push esi
call fcn.1001f7a0
add esp, 8
mov esi, eax
test esi, esi
jne 0x1001f29f
cmp dword [ebp - 0x20], eax
je 0x1001f281
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.1001f300
add esp, 8
test eax, eax
jne 0x1001f09f
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
sete cl
mov dword [ebp - 0x1c], ecx
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
pop edi
mov dword [eax], ecx
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100526c8
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x84], 0
je 0x1001f2b5
push 2
push 3
push edi
call fcn.1003e8f0
add esp, 0xc
push dword [ebp - 0x2c]
push 0
push ebx
push esi
push edi
call fcn.1001e680
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x84], 0
je 0x1001f2df
push 3
push edi
call fcn.1003e930
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
jne 0x1001f2ee
push esi
call fcn.1000d710
add esp, 4
jmp 0x1001f281
push eax
push edi
xor esi, esi
call fcn.1001f9e0
add esp, 8
jmp 0x1001f284