Function at 0x513c90
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x63b070]
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 - 0x2c], eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x28], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x513cd0
sub ecx, edx
cmp ecx, 7
jb 0x513d33
lea eax, [ebx + ecx]
mov dword [ebp - 0x24], eax
add eax, 0xfffffffa
push str..onion
push eax
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
jne 0x513d11
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff9
push str..onion.
push eax
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
je 0x513d33
push str.Not_resolving_.onion_address__RFC_7686_
push edi
call fcn.0050e830
add esp, 8
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x2c]
mov dword [eax], 0
mov eax, dword [ebp - 0x28]
mov byte [eax + 0x1da], 0
cmp dword [edi + 0x78], 0
je 0x513d59
push 2
push 3
push edi
call fcn.00512a00
add esp, 0xc
push esi
push ebx
push edi
call fcn.005142a0
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x513d87
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.0050e8f0
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x20], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x78], 0
je 0x513d98
push 3
push edi
call fcn.00512a40
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x513efd
cmp dword [edi + 0x688], 0
mov dword [ebp - 0x24], 0
je 0x513de8
push 1
push edi
call fcn.004fd5b0
push dword [edi + 0x68c]
mov eax, dword [edi + 0x688]
push 0
push dword [edi + 0x988]
call eax
push 0
push edi
mov esi, eax
call fcn.004fd5b0
add esp, 0x1c
test esi, esi
jne 0x513d1f
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x513e13
push esi
push ebx
lea eax, [ebp - 0x30]
push eax
push 2
call fcn.00521d80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x513f19
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x513e40
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push ebx
push eax
push 0x17
call fcn.00521d80
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x513f19
mov esi, dword [ebp - 0x28]
cmp byte [esi + 0x450], 2
jne 0x513e5d
push edi
call fcn.00513720
add esp, 4
test al, al
je 0x513d1f
push str.localhost
push ebx
call sym.Setup.exe_curl_strequal
add esp, 8
test eax, eax
jne 0x513ec6
push str..localhost
push ebx
call fcn.005146e0
add esp, 8
test al, al
jne 0x513ec6
cmp byte [ebp + 0x14], al
je 0x513ea1
cmp byte [edi + 0x6e5], al
je 0x513ea1
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push ebx
push edi
call fcn.005409b0
add esp, 0x10
jmp 0x513ed2
push esi
push edi
call fcn.00540990
add esp, 8
test al, al
je 0x513d1f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push ebx
push edi
call fcn.00522020
add esp, 0x10
jmp 0x513ed2
push ebx
push dword [ebp - 0x1c]
call fcn.005144a0
add esp, 8
mov esi, eax
test esi, esi
jne 0x513f19
cmp dword [ebp - 0x24], eax
je 0x513efd
lea eax, [ebp - 0x18]
push eax
push edi
call fcn.00513f70
add esp, 8
test eax, eax
jne 0x513d1f
xor ecx, ecx
cmp dword [ebp - 0x18], ecx
sete cl
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
pop edi
pop esi
mov dword [edx], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004a39ef
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x78], 0
je 0x513f2c
push 2
push 3
push edi
call fcn.00512a00
add esp, 0xc
push dword [ebp - 0x1c]
push 0
push ebx
push esi
push edi
call fcn.00513420
add esp, 0x14
mov dword [ebp - 0x18], eax
cmp dword [edi + 0x78], 0
je 0x513f50
push 3
push edi
call fcn.00512a40
add esp, 8
cmp dword [ebp - 0x18], 0
jne 0x513f61
push esi
call fcn.00521a70
add esp, 4
jmp 0x513efd
xor eax, eax
jmp 0x513f00