Function at 0x4cc170
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push esi
xor ebx, ebx
mov dword [eax], ebx
lea eax, [esp + 8]
push eax
push dword [esp + 0x24]
mov dword [esp + 0x14], ebx
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
jne 0x4cc37a
push ebp
push edi
push dword [esp + 0x10]
push 0x83
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push str.ADDR__s:_d_getaddrinfo_____p_n
call fcn.00499c30
mov edi, dword [esp + 0x20]
add esp, 0x10
test edi, edi
je 0x4cc35e
nop
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4cc1dd
lea ebp, [eax + 0xe]
jmp 0x4cc1e9
cmp eax, 0x17
jne 0x4cc2b2
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4cc2b2
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4cc2b2
cmp eax, ebp
jb 0x4cc2b2
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0x9e
push 0x20
call fcn.00499ca0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4cc350
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0xb0
push ebp
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call fcn.00499ca0
add esp, 0xc
mov dword [esi + 0x18], eax
test eax, eax
je 0x4cc333
push ebp
push dword [edi + 0x18]
push eax
call fcn.004ec860
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4cc29e
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xb9
push eax
call fcn.0049a070
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
je 0x4cc307
mov eax, dword [esp + 0x14]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4cc2ae
mov dword [eax + 0x1c], esi
mov dword [esp + 0x14], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4cc1d0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4cc2e8
push esi
push 0xcf
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push str.ADDR__s:_d_freeaddrinfo__p__n
call fcn.00499c30
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4cc35a
push ebx
call fcn.004cc120
mov eax, dword [esp + 0x30]
add esp, 4
xor ebx, ebx
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xbc
push dword [esi + 0x18]
mov ebp, 8
call fcn.00499bf0
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xbd
push esi
call fcn.00499bf0
add esp, 0x18
jmp 0x4cc2c1
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xb3
push esi
mov ebp, 8
call fcn.00499bf0
add esp, 0xc
jmp 0x4cc2c1
mov ebp, 8
jmp 0x4cc2c1
test ebx, ebx
jne 0x4cc36a
mov ebp, 0x2af9
push ebp
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x2c]
pop edi
mov dword [eax], ebx
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0xc
ret
push 0x83
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push str.ADDR__s:_d_getaddrinfo___failed_n
call fcn.00499c30
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret