Function at 0x5d0520
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.0066af60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
or ebp, 0xffffffff
push edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
cmp dword [esi + 0x7c], 0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x24], eax
je 0x5d0564
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 6
jmp 0x5d0595
mov eax, dword [esi + 0x14]
push str.OPENSSL_ALLOW_PROXY_CERTS
mov edi, dword [eax + 0x14]
shr edi, 6
and edi, 1
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
mov ecx, 1
test eax, eax
mov eax, dword [esi + 0x14]
cmovne edi, ecx
mov dword [esp + 0x18], edi
mov eax, dword [eax + 0x18]
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp dword [esi + 0x50], ebx
jle 0x5d0765
push ebx
push dword [esi + 0x54]
call fcn.0059b910
mov ecx, dword [esi + 0x14]
add esp, 8
mov edi, eax
test byte [ecx + 0x14], 0x10
jne 0x5d05df
test dword [edi + 0x28], 0x200
je 0x5d05df
push esi
push 0
mov dword [esi + 0x64], 0x22
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edi
call dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x5d076a
cmp dword [esp + 0x18], 0
jne 0x5d060e
test dword [edi + 0x28], 0x400
je 0x5d060e
push esi
push 0
mov dword [esi + 0x64], 0x28
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edi
call dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x5d076a
push edi
call fcn.0059fb90
add esp, 4
mov ecx, eax
cmp ebp, 0xffffffff
je 0x5d0641
test ebp, ebp
je 0x5d0636
test ecx, ecx
je 0x5d0653
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x5d0673
cmp ecx, 1
jne 0x5d0653
jmp 0x5d0673
test ecx, ecx
je 0x5d0673
mov eax, 0x25
jmp 0x5d0658
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x5d0673
cmp ecx, 1
je 0x5d0673
test ecx, ecx
je 0x5d0673
mov eax, 0x18
mov dword [esi + 0x64], eax
push esi
push 0
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edi
call dword [esp + 0x2c]
add esp, 8
test eax, eax
je 0x5d076a
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x18], 0
jle 0x5d06c6
xor eax, eax
test ebp, ebp
setg al
push eax
push dword [esp + 0x20]
push edi
call fcn.0059fc70
add esp, 0xc
test eax, eax
je 0x5d06a3
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x5d06c6
cmp eax, 1
je 0x5d06c6
mov ebp, dword [esp + 0x24]
push esi
push 0
mov dword [esi + 0x64], 0x1a
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edi
call ebp
add esp, 8
test eax, eax
je 0x5d076a
jmp 0x5d06ca
mov ebp, dword [esp + 0x24]
cmp ebx, 1
jle 0x5d0703
test byte [edi + 0x28], 0x20
mov edx, dword [esp + 0x10]
jne 0x5d0707
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x5d0707
inc eax
add eax, edx
cmp dword [esp + 0x14], eax
jle 0x5d0707
push esi
push 0
mov dword [esi + 0x64], 0x19
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edi
call ebp
add esp, 8
test eax, eax
je 0x5d076a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x28]
test cl, 0x20
lea eax, [eax + 1]
cmovne eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
test ecx, 0x400
je 0x5d0756
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x5d074d
cmp edx, eax
jle 0x5d074a
push esi
push 0
mov dword [esi + 0x64], 0x26
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edi
call ebp
add esp, 8
test eax, eax
je 0x5d076a
mov edx, dword [edi + 0x24]
inc edx
xor ebp, ebp
mov dword [esp + 0x10], edx
jmp 0x5d075b
mov ebp, 1
inc ebx
cmp ebx, dword [esi + 0x50]
jl 0x5d05a0
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret