Function at 0x4490e0
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], 0xffffffff
lea edx, [ecx + 1]
mov eax, dword [edi + 0x18]
mov dword [ebp - 8], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449101
sub ecx, edx
cmp ecx, 7
jb 0x449154
lea esi, [ecx + ebx]
lea eax, [esi - 6]
push str..onion
push eax
call fcn.00446d10
add esp, 8
test eax, eax
jne 0x44913c
lea eax, [esi - 7]
push str..onion.
push eax
call fcn.00446d10
add esp, 8
test eax, eax
je 0x449154
push str.Not_resolving_.onion_address__RFC_7686_
push edi
call fcn.0043ffa0
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 + 0x255], 0
cmp dword [edi + 0x84], 0
je 0x44917d
push 2
push 3
push edi
call fcn.00447c30
add esp, 0xc
mov esi, dword [ebp + 0x10]
push esi
push ebx
push edi
call fcn.004495e0
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
je 0x4491ae
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.00440060
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 4], 0
inc dword [eax + 0x10]
cmp dword [edi + 0x84], 0
je 0x4491c2
push 3
push edi
call fcn.00447c70
add esp, 8
cmp dword [ebp + 8], 0
jne 0x44945d
cmp dword [edi + 0x5d8], 0
mov dword [ebp - 0xc], 0
je 0x449212
push 1
push edi
call fcn.0042ddc0
push dword [edi + 0x5dc]
mov eax, dword [edi + 0x5d8]
push 0
push dword [edi + 0x898]
call eax
push 0
push edi
mov esi, eax
call fcn.0042ddc0
add esp, 0x1c
test esi, esi
jne 0x44914a
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 0x449242
push esi
push ebx
lea eax, [ebp - 0x10]
push eax
push 2
call fcn.00452a90
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44914a
jmp 0x4493b1
mov eax, dword [ebp - 8]
cmp byte [eax + 0x41b], 2
je 0x44914a
push str.localhost
push ebx
call fcn.00446d10
add esp, 8
test eax, eax
jne 0x44930a
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x449270
sub ecx, edx
cmp ecx, 0xa
jb 0x449297
lea eax, [ebx - 0xa]
push 0xa
add eax, ecx
push eax
push str..localhost
call fcn.00446d70
add esp, 0xc
test eax, eax
jne 0x44930a
cmp byte [ebp + 0x14], 0
je 0x4492b4
cmp byte [edi + 0x62b], 0
je 0x4492b4
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.0045aea0
jmp 0x4492d4
push dword [ebp - 8]
push edi
call fcn.00463520
add esp, 8
test al, al
je 0x44914a
lea eax, [ebp - 0xc]
push eax
push esi
push ebx
push edi
call fcn.00452dc0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4493b1
cmp dword [ebp - 0xc], 0
je 0x44945d
mov eax, dword [edi + 0x18]
cmp byte [eax + 0x255], 0
lea eax, [ebp + 8]
push eax
push edi
je 0x44942f
call fcn.0045afa0
jmp 0x449434
mov esi, ebx
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x449310
push dword [ebp + 0x10]
xorps xmm0, xmm0
mov eax, 2
sub esi, ecx
movlpd qword [ebp - 0x18], xmm0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x4492e1
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x31]
push eax
push 1
call dword [0x4c0520]
mov esi, eax
add esp, 8
test esi, esi
je 0x4492e1
movups xmm0, xmmword [ebp - 0x20]
lea eax, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 4], 2
lea ecx, [eax + 0x10]
mov dword [esi + 8], 1
mov edx, ebx
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], eax
movups xmmword [eax], xmm0
mov dword [esi + 0x14], ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x4493a3
cmp dword [edi + 0x84], 0
je 0x4493c7
push 2
push 3
push edi
call fcn.00447c30
add esp, 0xc
push dword [ebp + 0x10]
push 0
push ebx
push esi
push edi
call fcn.004486a0
add esp, 0x14
mov dword [ebp + 8], eax
cmp dword [edi + 0x84], 0
je 0x4493f1
push 3
push edi
call fcn.00447c70
mov eax, dword [ebp + 8]
add esp, 8
test eax, eax
jne 0x449412
push esi
call fcn.004528e0
mov eax, dword [ebp + 0x18]
add esp, 4
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
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.00449820
mov eax, dword [ebp + 0x18]
add esp, 8
mov ecx, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004337e0
mov esi, eax
add esp, 8
mov eax, dword [ebp + 8]
test eax, eax
je 0x44944a
push eax
push edi
call fcn.00449820
add esp, 8
test esi, esi
jne 0x44914a
xor ecx, ecx
cmp dword [ebp + 8], ecx
sete cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
pop edi
mov dword [eax], ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret