Function at 0x5ba040
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 0x5ba254
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x5ba068
mov eax, dword [ebx]
test eax, eax
cmovne edi, eax
test byte [ebx + 0x14], 4
jne 0x5ba254
test edi, edi
je 0x5ba254
cmp byte [edi], 0
je 0x5ba254
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
call fcn.005c8610
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
jne 0x5ba22d
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.0071d777
mov ebx, dword [ebx + 4]
add esp, 8
test ebx, ebx
je 0x5ba1f6
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], 0x757eea
push dword [esi + 0x18]
mov dword [ebp - 0xc], 0x757eea
mov dword [ebp - 0x18], 0x757eea
mov dword [ebp - 0x14], 0x757eea
call fcn.005c7ec0
add esp, 0xc
test eax, eax
jne 0x5ba244
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 0x5ba128
mov dword [ebp - 0x10], 0x78a91c
mov dword [ebp - 0xc], 0x798e28
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x5ba149
mov dword [ebp - 0x18], 0x78a91c
mov dword [ebp - 0x14], 0x798e28
mov eax, dword [esi + 0x14]
cmp eax, 8
je 0x5ba16f
cmp eax, 0x10
je 0x5ba168
cmp eax, 0x20
mov edx, 0x757eea
mov eax, 0x79d2d4
cmove edx, eax
jmp 0x5ba174
mov edx, 0x79d2d0
jmp 0x5ba174
mov edx, 0x79d2cc
mov eax, dword [esi + 8]
cmp eax, 8
je 0x5ba19a
cmp eax, 0x10
je 0x5ba193
cmp eax, 0x20
mov ecx, 0x757eea
mov eax, 0x79d2d4
cmove ecx, eax
jmp 0x5ba19f
mov ecx, 0x79d2d0
jmp 0x5ba19f
mov ecx, 0x79d2cc
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.005bcab0
add esp, 0x50
test ebx, ebx
jne 0x5ba0c5
push dword [ebp + 0xc]
call fcn.00711ab3
mov eax, dword [ebp - 4]
add esp, 4
test eax, eax
je 0x5ba230
push edi
push eax
call fcn.005c8540
add esp, 8
test eax, eax
je 0x5ba22d
mov dword [ebp - 8], 0x17
mov eax, dword [ebp - 4]
test eax, eax
je 0x5ba230
push eax
call fcn.00726e8b
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [0x8f1cb0]
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.00711ab3
add esp, 4
jmp 0x5ba21d
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret