Function at 0x5191a0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x58
call fcn.005555e0
sub rsp, rax
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
mov r12, qword [rcx + 0x40]
mov qword [rsp + 0x48], r13
xor r13d, r13d
mov qword [rsp + 0x40], r14
xor r14d, r14d
cmp qword [rcx + 0xe0], r13
mov rbx, rcx
lea ebp, [rax - 0x59]
lea esi, [rax - 0x57]
je 0x5191f8
xor edi, edi
mov dword [rsp + 0x20], 6
jmp 0x519221
mov rax, qword [rcx + 0x28]
lea rcx, str.OPENSSL_ALLOW_PROXY_CERTS
mov edi, dword [rax + 0x14]
shr edi, 6
and edi, esi
call sub.msvcrt.dll_getenv
test rax, rax
mov rax, qword [rbx + 0x28]
mov eax, dword [rax + 0x18]
cmovne edi, esi
mov dword [rsp + 0x20], eax
xor esi, esi
mov qword [rsp + 0x38], r15
movsxd r15, edi
cmp dword [rbx + 0x9c], esi
jle 0x51942d
nop
nop
nop
mov rcx, qword [rbx + 0xa0]
mov edx, esi
call fcn.00478150
mov rcx, qword [rbx + 0x28]
test byte [rcx + 0x14], 0x10
mov rdi, rax
jne 0x519289
bt dword [rax + 0x40], 9
jae 0x519289
mov rdx, rbx
xor ecx, ecx
mov dword [rbx + 0xb8], 0x22
mov dword [rbx + 0xb4], esi
mov qword [rbx + 0xc0], rax
call r12
test eax, eax
je 0x519432
test r15, r15
jne 0x5192bc
bt dword [rdi + 0x40], 0xa
jae 0x5192bc
mov rdx, rbx
xor ecx, ecx
mov dword [rbx + 0xb8], 0x28
mov dword [rbx + 0xb4], esi
mov qword [rbx + 0xc0], rdi
call r12
test eax, eax
je 0x519432
mov rcx, rdi
call fcn.00513210
cmp ebp, 0xffffffff
mov r11d, eax
je 0x5192ff
test ebp, ebp
je 0x5192ef
test eax, eax
je 0x5192e3
mov rcx, qword [rbx + 0x28]
test byte [rcx + 0x14], 0x20
je 0x51933b
cmp eax, 1
je 0x51933b
mov dword [rbx + 0xb8], 0x18
jmp 0x51931e
test eax, eax
je 0x51933b
mov dword [rbx + 0xb8], 0x25
jmp 0x51931e
mov rax, qword [rbx + 0x28]
test byte [rax + 0x14], 0x20
je 0x51933b
cmp r11d, 1
je 0x51933b
test r11d, r11d
je 0x51933b
mov dword [rbx + 0xb8], 0x18
mov rdx, rbx
xor ecx, ecx
mov dword [rbx + 0xb4], esi
mov qword [rbx + 0xc0], rdi
call r12
test eax, eax
je 0x519432
mov rax, qword [rbx + 0x28]
cmp dword [rax + 0x18], 0
jle 0x519394
mov edx, dword [rsp + 0x20]
xor r8d, r8d
test ebp, ebp
setg r8b
mov rcx, rdi
call fcn.00513940
test eax, eax
je 0x51936d
mov rcx, qword [rbx + 0x28]
test byte [rcx + 0x14], 0x20
je 0x519394
cmp eax, 1
je 0x519394
mov rdx, rbx
xor ecx, ecx
mov dword [rbx + 0xb8], 0x1a
mov dword [rbx + 0xb4], esi
mov qword [rbx + 0xc0], rdi
call r12
test eax, eax
je 0x519432
cmp esi, 1
jle 0x5193d4
test byte [rdi + 0x40], 0x20
jne 0x5193d4
mov eax, dword [rdi + 0x38]
cmp eax, 0xffffffff
je 0x5193d4
lea eax, [rax + r13 + 1]
cmp r14d, eax
jle 0x5193d4
mov rdx, rbx
xor ecx, ecx
mov dword [rbx + 0xb8], 0x19
mov dword [rbx + 0xb4], esi
mov qword [rbx + 0xc0], rdi
call r12
test eax, eax
je 0x519432
mov eax, dword [rdi + 0x40]
test al, 0x20
jne 0x5193de
inc r14d
bt eax, 0xa
jae 0x51941a
mov eax, dword [rdi + 0x3c]
cmp eax, 0xffffffff
je 0x519413
cmp esi, eax
jle 0x519413
mov rdx, rbx
xor ecx, ecx
mov dword [rbx + 0xb8], 0x26
mov dword [rbx + 0xb4], esi
mov qword [rbx + 0xc0], rdi
call r12
test eax, eax
je 0x519432
inc r13d
xor ebp, ebp
jmp 0x51941f
mov ebp, 1
inc esi
cmp esi, dword [rbx + 0x9c]
jl 0x519240
mov eax, 1
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret