Function at 0x1004ebb0
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 0x1004ed9c
mov edx, 0x100a4e5b
test ebx, ebx
jne 0x1004ed9c
cmp ebp, 0xffffffff
jne 0x1004ed9c
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 0x1004ec01
inc esi
jmp 0x1004ec89
mov cl, byte [edi + 0x264]
mov eax, 0x100a4e90
test cl, cl
cmove eax, edx
push eax
push dword [edi + 0x64]
mov eax, 0x100a4e94
cmove eax, edx
push eax
push 0x100974a8
call fcn.10055a00
mov ecx, eax
add esp, 0x10
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x1004ed8f
mov ebp, ecx
lea edx, [ebp + 1]
nop
mov al, byte [ebp]
inc ebp
test al, al
jne 0x1004ec40
sub ebp, edx
push ebp
push ecx
push esi
call fcn.10056f30
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanliburl.c
push 0xc4b
push dword [esp + 0x2c]
mov esi, eax
call fcn.100553e0
mov eax, dword [esp + 0x3c]
add esp, 0x18
test esi, esi
je 0x1004ed21
cmp byte [eax + ebp], 0x3a
jne 0x1004ed21
lea esi, [eax + 1]
add esi, ebp
mov ebp, dword [esp + 0x14]
cmp byte [esi], 0x3a
mov dword [esp + 0x18], esi
je 0x1004ecc8
push 0x3a
push esi
call sub.VCRUNTIME140.dll_strchr
mov esi, eax
add esp, 8
test esi, esi
je 0x1004eced
push 0xa
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push dword [esp + 0x20]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
add esp, 0xc
cmp dword [esp + 0x14], esi
jne 0x1004eced
cmp eax, dword [edi + 0xc8]
jne 0x1004eced
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.1004e9e0
mov ebx, dword [esp + 0x2c]
add esp, 0x10
mov ebp, dword [esp + 0x20]
jmp 0x1004ecf3
mov esi, dword [esp + 0x2c]
mov eax, ebx
test eax, eax
jne 0x1004eec7
test ebx, ebx
je 0x1004ed25
cmp byte [ebx], al
je 0x1004ed25
push ebx
push str.Connecting_to_hostname:__s
push esi
mov dword [edi + 0x74], ebx
mov dword [edi + 0x7c], ebx
mov byte [edi + 0x260], 1
call fcn.10050c90
add esp, 0xc
jmp 0x1004ed45
mov ebp, dword [esp + 0x14]
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanliburl.c
push 0xc8a
push ebx
mov byte [edi + 0x260], 0
call fcn.100553e0
mov esi, dword [esp + 0x38]
add esp, 0xc
xor ebx, ebx
test ebp, ebp
js 0x1004ed75
push ebp
push str.Connecting_to_port:__d
push esi
mov dword [edi + 0xcc], ebp
mov byte [edi + 0x261], 1
call fcn.10050c90
mov eax, dword [esp + 0x40]
add esp, 0xc
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
jmp 0x1004ebc4
mov eax, dword [esp + 0x34]
or ebp, 0xffffffff
mov byte [edi + 0x261], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x34], eax
jmp 0x1004ebc4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
cmp dword [eax + 0x740], 0
je 0x1004eec5
test ebx, ebx
jne 0x1004eec5
cmp ebp, 0xffffffff
jne 0x1004eec5
mov eax, dword [edi + 0x2a0]
cmp dword [eax + 0x44], 2
je 0x1004eddf
push str.CURL_ALTSVC_HTTP
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x1004eec5
mov ebx, dword [esp + 0x2c]
mov esi, dword [edi + 0x5c]
mov ecx, dword [ebx + 0x740]
mov eax, dword [ecx + 0x14]
and eax, 8
push eax
lea eax, [esp + 0x38]
push eax
push dword [edi + 0xc8]
push esi
push 8
push ecx
call fcn.10053a10
add esp, 0x18
test al, al
je 0x1004eec5
mov eax, dword [esp + 0x34]
push str.C:UsersClint_vcpkg_buildtreescurl_srce2f4ea635f_0a39edd58e.cleanliburl.c
push 0xcc4
push dword [eax + 0xc]
call fcn.10055860
mov edx, eax
add esp, 0xc
test edx, edx
je 0x1004ed8f
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x74], edx
mov dword [edi + 0x7c], edx
mov byte [edi + 0x260], 1
movzx eax, word [ecx + 0x10]
mov dword [edi + 0xcc], eax
mov byte [edi + 0x261], 1
mov byte [edi + 0x25f], 1
movzx eax, word [ecx + 0x10]
push eax
push edx
push dword [ecx + 0x14]
call fcn.100538f0
add esp, 4
push eax
push dword [edi + 0xc8]
push esi
push 8
call fcn.100538f0
add esp, 4
push eax
push str.Alt_svc_connecting_from___s__s:_d_to___s__s:_d
push ebx
call fcn.10050c90
mov eax, dword [esp + 0x54]
add esp, 0x20
mov eax, dword [eax + 0x14]
cmp eax, 8
je 0x1004eec5
cmp eax, 0x10
je 0x1004eebe
cmp eax, 0x20
jne 0x1004eec5
mov dword [edi + 0x58], 5
xor eax, eax
mov byte [edi + 0x114], 0x1e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov byte [edi + 0x114], 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret