Function at 0x5ad880
Capabilities:
Convert ip address from string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
push edi
test ebx, ebx
je 0x5ada94
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x5ad8a8
mov eax, dword [ebx]
test eax, eax
cmovne edi, eax
test byte [ebx + 0x14], 4
jne 0x5ada94
test edi, edi
je 0x5ada94
cmp byte [edi], 0
je 0x5ada94
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
call fcn.005bbe50
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x5ada6d
push dword [ebp + 0xc]
push str._Your_alt_svc_cache._https:__curl.se_docs_alt_svc.html_n_This_file_was_generated_by_libcurl__Edit_at_your_own_risk._n
call fcn.00710f17
mov ebx, dword [ebx + 4]
add esp, 8
test ebx, ebx
je 0x5ada36
mov dword [ebp - 8], 0
mov esi, dword [ebx]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebx + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x50]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x10], 0x749c2a
push dword [esi + 0x18]
mov dword [ebp - 0xc], 0x749c2a
mov dword [ebp - 0x18], 0x749c2a
mov dword [ebp - 0x14], 0x749c2a
call fcn.005bb700
add esp, 0xc
test eax, eax
jne 0x5ada84
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0xc]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5ad968
mov dword [ebp - 0x10], 0x77ae5c
mov dword [ebp - 0xc], 0x789e20
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5ad989
mov dword [ebp - 0x18], 0x77ae5c
mov dword [ebp - 0x14], 0x789e20
mov eax, dword [esi + 0x14]
cmp eax, 8
je 0x5ad9af
cmp eax, 0x10
je 0x5ad9a8
cmp eax, 0x20
mov edx, 0x749c2a
mov eax, 0x78e2c4
cmove edx, eax
jmp 0x5ad9b4
mov edx, 0x78e2c0
jmp 0x5ad9b4
mov edx, 0x78e2bc
mov eax, dword [esi + 8]
cmp eax, 8
je 0x5ad9da
cmp eax, 0x10
je 0x5ad9d3
cmp eax, 0x20
mov ecx, 0x749c2a
mov eax, 0x78e2c4
cmove ecx, eax
jmp 0x5ad9df
mov ecx, 0x78e2c0
jmp 0x5ad9df
mov ecx, 0x78e2bc
push dword [esi + 0x24]
movzx eax, byte [esi + 0x20]
push eax
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x40]
push dword [ebp - 0x4c]
inc eax
push dword [ebp - 0x48]
push dword [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x3c]
add eax, 0x76c
push eax
movzx eax, word [esi + 0x10]
push eax
push dword [ebp - 0xc]
movzx eax, word [esi + 4]
push dword [esi + 0xc]
push dword [ebp - 0x10]
push edx
push eax
push dword [ebp - 0x14]
push dword [esi]
push dword [ebp - 0x18]
push ecx
push str._s__s_s_s__u__s__s_s_s__u___d_02d_02d__02d:_02d:_02d___u__d_n
push dword [ebp - 0x1c]
call fcn.005b02f0
add esp, 0x50
test ebx, ebx
jne 0x5ad905
push dword [ebp + 0xc]
call fcn.0070526f
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x5ada70
push edi
push eax
call fcn.005bbd80
add esp, 8
test eax, eax
je 0x5ada6d
mov dword [ebp - 8], 0x17
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ada70
push eax
call fcn.0071a62b
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [0x8e260c]
mov eax, dword [ebp - 8]
add esp, 4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call fcn.0070526f
add esp, 4
jmp 0x5ada5d
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret