Function at 0x140055430
Capabilities:
Convert ip address from string

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xf0
lea rdi, [rsp + 0x30]
mov ecx, 0x30
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100]
mov rax, qword [0x14013be00]
xor rax, rsp
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x48], 0xffffffff
mov rax, qword [rsp + 0x100]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x108]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 7
jb 0x14005551b
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx - 6]
lea rdx, str..onion
mov rcx, rax
call fcn.140049bd0
test eax, eax
jne 0x1400554fd
mov rax, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x58]
lea rax, [rax + rcx - 7]
lea rdx, str..onion.
mov rcx, rax
call fcn.140049bd0
test eax, eax
je 0x14005551b
lea rdx, str.Not_resolving_.onion_address__RFC_7686_
mov rcx, qword [rsp + 0x100]
call fcn.14003ce90
mov eax, 0xffffffff
jmp 0x140055976
mov rax, qword [rsp + 0x120]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov byte [rax + 0x3b9], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0xe8], 0
je 0x140055561
mov r8d, 2
mov edx, 3
mov rcx, qword [rsp + 0x100]
call fcn.140050910
nop
mov r8d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.140057350
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x1400555c1
mov r8, qword [rsp + 0x108]
lea rdx, str.Hostname__s_was_found_in_DNS_cache
mov rcx, qword [rsp + 0x100]
call fcn.14003d050
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x10]
inc eax
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x10], eax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0xe8], 0
je 0x1400555e6
mov edx, 3
mov rcx, qword [rsp + 0x100]
call fcn.1400509b0
nop
cmp qword [rsp + 0x38], 0
jne 0x140055962
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x74], 0
mov byte [rsp + 0xa4], 0
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0x9e8], 0
je 0x140055684
mov dl, 1
mov rcx, qword [rsp + 0x100]
call fcn.14000f000
mov rax, qword [rsp + 0x100]
mov r8, qword [rax + 0x9f0]
xor edx, edx
mov rax, qword [rsp + 0x100]
mov rcx, qword [rax + 0xd48]
mov rax, qword [rsp + 0x100]
call qword [rax + 0x9e8]
mov dword [rsp + 0xa8], eax
xor edx, edx
mov rcx, qword [rsp + 0x100]
call fcn.14000f000
cmp dword [rsp + 0xa8], 0
je 0x140055684
mov eax, 0xffffffff
jmp 0x140055976
lea r8, [rsp + 0x94]
mov rdx, qword [rsp + 0x108]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x1400556de
mov r9d, dword [rsp + 0x110]
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0x94]
mov ecx, 2
call fcn.14006c010
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400556dc
mov eax, 0xffffffff
jmp 0x140055976
jmp 0x140055736
lea r8, [rsp + 0xb8]
mov rdx, qword [rsp + 0x108]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x140055736
mov r9d, dword [rsp + 0x110]
mov r8, qword [rsp + 0x108]
lea rdx, [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_socket
call fcn.14006c010
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140055736
mov eax, 0xffffffff
jmp 0x140055976
cmp qword [rsp + 0x60], 0
jne 0x140055860
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x7df]
cmp eax, 2
jne 0x140055771
mov rcx, qword [rsp + 0x100]
call fcn.140055a20
movzx eax, al
test eax, eax
jne 0x140055771
mov eax, 0xffffffff
jmp 0x140055976
lea rdx, [0x140119468]
mov rcx, qword [rsp + 0x108]
call fcn.140049bd0
test eax, eax
jne 0x1400557a4
lea rdx, str..localhost
mov rcx, qword [rsp + 0x108]
call fcn.140057d20
movzx eax, al
test eax, eax
je 0x1400557c2
mov rdx, qword [rsp + 0x108]
mov ecx, dword [rsp + 0x110]
call fcn.140057b10
mov qword [rsp + 0x60], rax
jmp 0x140055860
movzx eax, byte [rsp + 0x118]
test eax, eax
je 0x140055816
mov rax, qword [rsp + 0x100]
movzx eax, byte [rax + 0xa73]
test eax, eax
je 0x140055816
movzx eax, byte [rsp + 0xa4]
test eax, eax
jne 0x140055816
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.14006e360
mov qword [rsp + 0x60], rax
jmp 0x140055860
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x100]
call fcn.1400b3470
movzx eax, al
test eax, eax
jne 0x140055839
mov eax, 0xffffffff
jmp 0x140055976
lea r9, [rsp + 0x74]
mov r8d, dword [rsp + 0x110]
mov rdx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0x100]
call fcn.14006c550
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x1400558b5
cmp dword [rsp + 0x74], 0
je 0x1400558b0
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call fcn.140056b90
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0
je 0x140055896
mov eax, 0xffffffff
jmp 0x140055976
cmp qword [rsp + 0x38], 0
je 0x1400558a8
mov dword [rsp + 0x48], 0
jmp 0x1400558b0
mov dword [rsp + 0x48], 1
jmp 0x140055962
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0xe8], 0
je 0x1400558e0
mov r8d, 2
mov edx, 3
mov rcx, qword [rsp + 0x100]
call fcn.140050910
nop
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x100]
call fcn.140055fe0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x100]
cmp qword [rax + 0xe8], 0
je 0x140055932
mov edx, 3
mov rcx, qword [rsp + 0x100]
call fcn.1400509b0
nop
cmp qword [rsp + 0x38], 0
jne 0x140055947
mov rcx, qword [rsp + 0x60]
call fcn.14006b980
nop
jmp 0x140055962
mov dword [rsp + 0x48], 0
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x100]
call fcn.140056d80
nop
mov rax, qword [rsp + 0x120]
mov rcx, qword [rsp + 0x38]
mov qword [rax], rcx
mov eax, dword [rsp + 0x48]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_connect
call fcn.1400d050c
mov rax, rdi
mov rcx, qword [rsp + 0xe0]
xor rcx, rsp
call fcn.1400d0280
add rsp, 0xf0
pop rdi
ret