Function at 0x4e9480
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.0055ab70
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 0x4e94c4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 6
jmp 0x4e94f5
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 0x4e96c4
push ebx
push dword [esi + 0x54]
call fcn.004ba730
mov ecx, dword [esi + 0x14]
add esp, 8
mov edi, eax
test byte [ecx + 0x14], 0x10
jne 0x4e953f
test dword [edi + 0x28], 0x200
je 0x4e953f
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 0x4e96c9
cmp dword [esp + 0x18], 0
jne 0x4e956e
test dword [edi + 0x28], 0x400
je 0x4e956e
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 0x4e96c9
push edi
call fcn.004c5df0
add esp, 4
mov ecx, eax
cmp ebp, 0xffffffff
je 0x4e95a1
test ebp, ebp
je 0x4e9594
test ecx, ecx
je 0x4e95b3
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x4e95d2
cmp ecx, 1
jmp 0x4e95b1
test ecx, ecx
je 0x4e95d2
mov dword [esi + 0x64], 0x25
jmp 0x4e95ba
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x4e95d2
cmp ecx, 1
je 0x4e95d2
test ecx, ecx
je 0x4e95d2
mov dword [esi + 0x64], 0x18
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 0x4e96c9
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x18], 0
jle 0x4e9625
xor eax, eax
test ebp, ebp
setg al
push eax
push dword [esp + 0x20]
push edi
call fcn.004c5ed0
add esp, 0xc
test eax, eax
je 0x4e9602
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x4e9625
cmp eax, 1
je 0x4e9625
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 0x4e96c9
jmp 0x4e9629
mov ebp, dword [esp + 0x24]
cmp ebx, 1
jle 0x4e9662
test byte [edi + 0x28], 0x20
mov edx, dword [esp + 0x10]
jne 0x4e9666
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x4e9666
inc eax
add eax, edx
cmp dword [esp + 0x14], eax
jle 0x4e9666
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 0x4e96c9
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 0x4e96b5
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x4e96ac
cmp edx, eax
jle 0x4e96a9
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 0x4e96c9
mov edx, dword [edi + 0x24]
inc edx
xor ebp, ebp
mov dword [esp + 0x10], edx
jmp 0x4e96ba
mov ebp, 1
inc ebx
cmp ebx, dword [esi + 0x50]
jl 0x4e9500
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret