Function at 0x1001dc70
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
lea edx, [ecx + 1]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [edi + 0x18]
mov dword [ebp + 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001dc98
sub ecx, edx
cmp ecx, 7
jb 0x1001dceb
lea esi, [ecx + ebx]
lea eax, [esi - 6]
push str..onion
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001dcd3
lea eax, [esi - 7]
push str..onion.
push eax
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x1001dceb
push str.Not_resolving_.onion_address__RFC_7686_
push edi
call fcn.1000fec0
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, dword [ebp + 8]
mov byte [eax + 0x259], 0
cmp dword [edi + 0x84], 0
je 0x1001dd14
push 2
push 3
push edi
call fcn.1003ccf0
add esp, 0xc
mov esi, dword [ebp + 0x10]
push esi
push ebx
push edi
call fcn.1001e230
add esp, 0xc
mov dword [ebp - 4], eax
test eax, eax
je 0x1001dd45
push ebx
push 0x1006ccc0
push edi
call fcn.1000ff60
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 8], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x84], 0
je 0x1001dd59
push 3
push edi
call fcn.1003cd30
add esp, 8
cmp dword [ebp - 4], 0
jne 0x1001deb2
cmp dword [edi + 0x63c], 0
mov dword [ebp - 0xc], 0
je 0x1001dda9
push 1
push edi
call fcn.1002ec20
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.1002ec20
add esp, 0x1c
test esi, esi
jne 0x1001dce1
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001ddde
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call fcn.1000d2f0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x1001dec6
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1001ddf9
push esi
push ebx
lea eax, [ebp - 0x20]
push eax
push 0x17
jmp 0x1001ddc2
mov eax, dword [ebp + 8]
cmp byte [eax + 0x3af], 2
jne 0x1001de16
push edi
call fcn.1001d730
add esp, 4
test al, al
je 0x1001dce1
push str.localhost
push ebx
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
jne 0x1001de7d
push str..localhost
push ebx
call fcn.1001e7b0
add esp, 8
test al, al
jne 0x1001de7d
cmp byte [ebp + 0x14], al
je 0x1001de58
cmp byte [edi + 0x69e], al
je 0x1001de58
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.10010ef0
add esp, 0x10
jmp 0x1001de87
push dword [ebp + 8]
push edi
call fcn.1001e800
add esp, 8
test al, al
je 0x1001dce1
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.1001d430
add esp, 0x10
jmp 0x1001de87
push ebx
push esi
call fcn.1001e3c0
add esp, 8
mov esi, eax
test esi, esi
jne 0x1001dec6
cmp dword [ebp - 0xc], eax
je 0x1001deb2
lea eax, [ebp - 4]
push eax
push edi
call fcn.1001df50
add esp, 8
test eax, eax
jne 0x1001dce1
xor ecx, ecx
cmp dword [ebp - 4], ecx
sete cl
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x84], 0
je 0x1001dedc
push 2
push 3
push edi
call fcn.1003ccf0
add esp, 0xc
push dword [ebp + 0x10]
push 0
push ebx
push esi
push edi
call fcn.1001d440
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [edi + 0x84], 0
je 0x1001df06
push 3
push edi
call fcn.1003cd30
mov eax, dword [ebp - 4]
add esp, 8
test eax, eax
jne 0x1001df27
push esi
call fcn.1000cfe0
mov eax, dword [ebp + 0x18]
add esp, 4
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
push edi
xor esi, esi
call fcn.1001e5e0
mov eax, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret