Function at 0x4d4890
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.0052c8c0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
or ebp, 0xffffffff
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
cmp dword [esi + 0x7c], 0
mov eax, dword [esi + 0x20]
mov dword [esp + 0x24], eax
je 0x4d48d4
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 6
jmp 0x4d4905
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 0x4d4acc
push ebx
push dword [esi + 0x54]
call fcn.00495d80
mov ecx, dword [esi + 0x14]
add esp, 8
mov edi, eax
test byte [ecx + 0x14], 0x10
jne 0x4d494f
test dword [edi + 0x28], 0x200
je 0x4d494f
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 0x4d4ad1
cmp dword [esp + 0x18], 0
jne 0x4d497e
test dword [edi + 0x28], 0x400
je 0x4d497e
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 0x4d4ad1
push edi
call fcn.004d7030
add esp, 4
mov ecx, eax
cmp ebp, 0xffffffff
je 0x4d49b1
test ebp, ebp
je 0x4d49a4
test ecx, ecx
je 0x4d49c3
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x4d49e2
cmp ecx, 1
jmp 0x4d49c1
test ecx, ecx
je 0x4d49e2
mov dword [esi + 0x64], 0x25
jmp 0x4d49ca
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x4d49e2
cmp ecx, 1
je 0x4d49e2
test ecx, ecx
je 0x4d49e2
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 0x4d4ad1
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x18], 0
jle 0x4d4a35
xor eax, eax
test ebp, ebp
setg al
push eax
push dword [esp + 0x20]
push edi
call fcn.004d7110
add esp, 0xc
test eax, eax
je 0x4d4a12
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x4d4a35
cmp eax, 1
je 0x4d4a35
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 0x4d4ad1
jmp 0x4d4a39
mov ebp, dword [esp + 0x24]
cmp ebx, 1
jle 0x4d4a72
test byte [edi + 0x28], 0x20
jne 0x4d4a72
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x4d4a72
mov ecx, dword [esp + 0x14]
inc ecx
add eax, ecx
cmp dword [esp + 0x10], eax
jle 0x4d4a72
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 0x4d4ad1
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x28]
test cl, 0x20
lea eax, [eax + 1]
cmovne eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
test ecx, 0x400
je 0x4d4abd
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x4d4ab5
cmp ebx, eax
jle 0x4d4ab5
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 0x4d4ad1
inc dword [esp + 0x14]
xor ebp, ebp
jmp 0x4d4ac2
mov ebp, 1
inc ebx
cmp ebx, dword [esi + 0x50]
jl 0x4d4910
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret