Function at 0x4c65d0
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 0x4c67da
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.00494080
mov edi, dword [esp + 0x20]
add esp, 0x10
test edi, edi
je 0x4c67be
nop
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4c663d
lea ebp, [eax + 0xe]
jmp 0x4c6649
cmp eax, 0x17
jne 0x4c6712
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4c6712
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4c6712
cmp eax, ebp
jb 0x4c6712
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0x9e
push 0x20
call fcn.004940f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4c67b0
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.004940f0
add esp, 0xc
mov dword [esi + 0x18], eax
test eax, eax
je 0x4c6793
push ebp
push dword [edi + 0x18]
push eax
call fcn.004e7650
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4c66fe
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xb9
push eax
call fcn.004944c0
add esp, 0xc
mov dword [esi + 0x14], eax
test eax, eax
je 0x4c6767
mov eax, dword [esp + 0x14]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x4c670e
mov dword [eax + 0x1c], esi
mov dword [esp + 0x14], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4c6630
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x4c6748
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.00494080
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebp, ebp
je 0x4c67ba
push ebx
call fcn.004c6580
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.00494040
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xbd
push esi
call fcn.00494040
add esp, 0x18
jmp 0x4c6721
push str.Y:_vcpkg_buildtreescurl_srcurl_7_68_0_cd669cc759libcurl_addrinfo.c
push 0xb3
push esi
mov ebp, 8
call fcn.00494040
add esp, 0xc
jmp 0x4c6721
mov ebp, 8
jmp 0x4c6721
test ebx, ebx
jne 0x4c67ca
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.00494080
add esp, 0xc
mov eax, esi
pop esi
pop ebx
add esp, 0xc
ret