Function at 0x42db00
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor ebx, ebx
or ebp, 0xffffffff
test eax, eax
je 0x42dcf4
mov edx, 0x46b37b
test ebx, ebx
jne 0x42dcf4
cmp ebp, 0xffffffff
jne 0x42dcf4
mov esi, dword [eax]
or ebp, ebp
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebp
cmp byte [esi], 0x3a
mov dword [esp + 0x20], ebp
jne 0x42db51
inc esi
jmp 0x42dbda
mov cl, byte [edi + 0x524]
mov eax, 0x46df10
test cl, cl
cmove eax, edx
push eax
push dword [edi + 0x304]
mov eax, 0x46df14
cmove eax, edx
push eax
push 0x46cf08
call sym.curl_maprintf
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x42dce7
mov ebp, ecx
lea edx, [ebp + 1]
mov al, byte [ebp]
inc ebp
test al, al
jne 0x42db91
sub ebp, edx
push ebp
push ecx
push esi
call fcn.00454670
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanliburl.c
push 0xbe7
push dword [esp + 0x2c]
mov esi, eax
call sym.curl_dbg_free
mov eax, dword [esp + 0x3c]
add esp, 0x18
test esi, esi
je 0x42dc79
cmp byte [eax + ebp], 0x3a
jne 0x42dc79
lea esi, [eax + 1]
add esi, ebp
mov ebp, dword [esp + 0x14]
cmp byte [esi], 0x3a
mov dword [esp + 0x18], esi
je 0x42dc1a
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr_1
mov esi, eax
add esp, 8
test esi, esi
je 0x42dc3f
push 0xa
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
add esp, 0xc
cmp dword [esp + 0x14], esi
jne 0x42dc3f
cmp eax, dword [edi + 0x368]
jne 0x42dc3f
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 1]
mov esi, dword [esp + 0x34]
push eax
push esi
call fcn.0042d920
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov ebp, dword [esp + 0x20]
jmp 0x42dc45
mov esi, dword [esp + 0x2c]
mov eax, ebx
test eax, eax
jne 0x42de32
test ebx, ebx
je 0x42dc7d
cmp byte [ebx], al
je 0x42dc7d
push ebx
push str.Connecting_to_hostname:__s_n
push esi
mov dword [edi + 0x314], ebx
mov dword [edi + 0x31c], ebx
mov byte [edi + 0x520], 1
call fcn.0044b030
add esp, 0xc
jmp 0x42dc9d
mov ebp, dword [esp + 0x14]
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanliburl.c
push 0xc26
push ebx
mov byte [edi + 0x520], 0
call sym.curl_dbg_free
mov esi, dword [esp + 0x38]
add esp, 0xc
xor ebx, ebx
test ebp, ebp
js 0x42dccd
push ebp
push str.Connecting_to_port:__d_n
push esi
mov dword [edi + 0x36c], ebp
mov byte [edi + 0x521], 1
call fcn.0044b030
mov eax, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
jmp 0x42db14
mov eax, dword [esp + 0x34]
or ebp, 0xffffffff
mov byte [edi + 0x521], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
jmp 0x42db14
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0xb78], 0
je 0x42de30
test ebx, ebx
jne 0x42de30
cmp ebp, 0xffffffff
jne 0x42de30
mov eax, dword [edi + 0x568]
cmp dword [eax + 0x40], 2
je 0x42dd38
push str.CURL_ALTSVC_HTTP
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x42de30
mov ebx, dword [esp + 0x2c]
mov esi, dword [edi + 0x2fc]
mov ecx, dword [ebx + 0xb78]
mov eax, dword [ecx + 0x14]
and eax, 8
push eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 0x368]
push esi
push 8
push ecx
call fcn.00418120
add esp, 0x18
test al, al
je 0x42de30
mov eax, dword [esp + 0x34]
push str.C:dev_vcpkg_buildtreescurl_srce5cd7b457b_e7993911b1.cleanliburl.c
push 0xc60
push dword [eax + 0xc]
call sym.curl_dbg_strdup
mov edx, eax
add esp, 0xc
test edx, edx
je 0x42dce7
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x314], edx
mov dword [edi + 0x31c], edx
mov byte [edi + 0x520], 1
movzx eax, word [ecx + 0x10]
mov dword [edi + 0x36c], eax
mov byte [edi + 0x521], 1
mov byte [edi + 0x51f], 1
movzx eax, word [ecx + 0x10]
push eax
push edx
push dword [ecx + 0x14]
call fcn.00418000
add esp, 4
push eax
push dword [edi + 0x368]
push esi
push 8
call fcn.00418000
add esp, 4
push eax
push str.Alt_svc_connecting_from___s__s:_d_to___s__s:_d_n
push ebx
call fcn.0044b030
mov eax, dword [esp + 0x54]
add esp, 0x20
mov eax, dword [eax + 0x14]
cmp eax, 8
je 0x42de30
cmp eax, 0x10
je 0x42de26
cmp eax, 0x20
jne 0x42de30
mov dword [edi + 0x2f8], 5
xor eax, eax
mov dword [edi + 0x3e8], 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov dword [edi + 0x3e8], 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret