Function at 0x439e80
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x2c
mov eax, dword [0x5a83f8]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
mov ecx, ebx
push ebp
push esi
mov esi, dword [esp + 0x44]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x40]
lea edx, [ecx + 1]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0
mov eax, dword [edi + 0x18]
mov dword [esp + 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x439ec1
sub ecx, edx
cmp ecx, 7
jb 0x439f28
lea eax, [ebx + ecx]
mov dword [esp + 0x14], eax
add eax, 0xfffffffa
push str..onion
push eax
call fcn.004368f0
add esp, 8
test eax, eax
jne 0x439f04
mov eax, dword [esp + 0x14]
add eax, 0xfffffff9
push str..onion.
push eax
call fcn.004368f0
add esp, 8
test eax, eax
je 0x439f28
push str.Not_resolving_.onion_address__RFC_7686_
push edi
call fcn.0042ff10
add esp, 8
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0046ec22
add esp, 0x2c
ret
mov eax, dword [esp + 0x24]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
mov byte [eax + 0x259], 0
cmp dword [edi + 0x84], 0
je 0x439f53
push 2
push 3
push edi
call fcn.00437a40
add esp, 0xc
push esi
push ebx
push edi
call fcn.0043a450
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
je 0x439f7e
push ebx
push str.Hostname__s_was_found_in_DNS_cache
push edi
call fcn.0042ffe0
mov eax, dword [esp + 0x1c]
add esp, 0xc
inc dword [eax + 0x10]
xor ebp, ebp
cmp dword [edi + 0x84], 0
je 0x439f92
push 3
push edi
call fcn.00437a80
add esp, 8
cmp dword [esp + 0x10], 0
jne 0x43a16d
cmp dword [edi + 0x64c], 0
mov dword [esp + 0x14], 0
je 0x439fe5
push 1
push edi
call fcn.0041e490
push dword [edi + 0x650]
mov eax, dword [edi + 0x64c]
push 0
push dword [edi + 0x920]
call eax
push 0
push edi
mov esi, eax
call fcn.0041e490
add esp, 0x1c
test esi, esi
jne 0x439f12
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
push ebx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x43a028
push esi
push ebx
lea eax, [esp + 0x24]
push eax
push 2
call fcn.004434a0
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x43a10f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0046ec22
add esp, 0x2c
ret
lea eax, [esp + 0x28]
push eax
push ebx
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jle 0x43a045
push esi
push ebx
lea eax, [esp + 0x30]
push eax
push 0x17
jmp 0x43a000
mov eax, dword [esp + 0x18]
cmp byte [eax + 0x4d3], 2
jne 0x43a063
push edi
call fcn.00439920
add esp, 4
test al, al
je 0x439f12
push str.localhost
push ebx
call fcn.004368f0
add esp, 8
test eax, eax
jne 0x43a0ce
push str..localhost
push ebx
call fcn.0043aa40
add esp, 8
test al, al
jne 0x43a0ce
cmp byte [esp + 0x4c], al
je 0x43a0a7
cmp byte [edi + 0x6af], al
je 0x43a0a7
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push edi
call fcn.0045c8b0
add esp, 0x10
jmp 0x43a0d8
push dword [esp + 0x18]
push edi
call fcn.00465790
add esp, 8
test al, al
je 0x439f12
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push edi
call fcn.00443750
add esp, 0x10
jmp 0x43a0d8
push ebx
push esi
call fcn.0043a600
add esp, 8
mov esi, eax
test esi, esi
jne 0x43a10f
cmp dword [esp + 0x14], eax
je 0x43a16d
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0043a190
add esp, 8
test eax, eax
jne 0x439f12
xor ecx, ecx
cmp dword [esp + 0x10], ecx
sete cl
mov dword [esp + 0x1c], ecx
mov ebp, ecx
jmp 0x43a16d
cmp dword [edi + 0x84], 0
je 0x43a125
push 2
push 3
push edi
call fcn.00437a40
add esp, 0xc
push dword [esp + 0x20]
push 0
push ebx
push esi
push edi
call fcn.00439590
add esp, 0x14
mov dword [esp + 0x10], eax
cmp dword [edi + 0x84], 0
je 0x43a152
push 3
push edi
call fcn.00437a80
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x43a161
push esi
call fcn.00443320
add esp, 4
jmp 0x43a16d
push eax
push edi
xor ebp, ebp
call fcn.0043a850
add esp, 8
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
mov eax, ebp
mov ecx, dword [esp + 0x30]
pop ebp
pop ebx
xor ecx, esp
call fcn.0046ec22
add esp, 0x2c
ret