Function at 0x1007aa50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x20
call fcn.100b1990
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
xor edi, edi
mov eax, dword [esi + 8]
mov ebp, dword [esi + 0x14]
cmp eax, edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x18], edi
jne 0x1007aaa2
push 0x6d
push str..cryptox509x509_vfy.c
push 0x69
push 0x7f
push 0xb
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x4c]
cmp eax, edi
jne 0x1007aaee
call sym.LIBEAY32_smt.dll_sk_new_null
cmp eax, edi
mov dword [esi + 0x4c], eax
je 0x1007ab10
mov ecx, dword [esi + 8]
push ecx
push eax
call sym.LIBEAY32_smt.dll_sk_push
add esp, 8
test eax, eax
je 0x1007ab10
mov edx, dword [esi + 8]
push 0x7d
push str..cryptox509x509_vfy.c
push 3
add edx, 0x10
push 1
push edx
call sym.LIBEAY32_smt.dll_CRYPTO_add_lock
add esp, 0x14
mov dword [esi + 0x48], 1
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x1007ab17
push eax
call sym.LIBEAY32_smt.dll_sk_dup
add esp, 4
cmp eax, edi
mov dword [esp + 0x18], eax
jne 0x1007ab17
push 0x85
jmp 0x1007aca3
push 0x7a
jmp 0x1007aca3
mov eax, dword [esi + 0x4c]
push eax
call sym.LIBEAY32_smt.dll_sk_num
mov edx, dword [esi + 0x4c]
mov ebx, eax
mov dword [esp + 0x18], ebx
lea ecx, [ebx - 1]
push ecx
push edx
call sym.LIBEAY32_smt.dll_sk_value
mov edi, eax
mov eax, dword [ebp + 0x18]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x20], eax
jl 0x1007ac14
push edi
call sym.LIBEAY32_smt.dll_X509_get_issuer_name
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x1007ac14
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1007ac14
mov eax, dword [esp + 0x18]
xor ebx, ebx
push eax
call sym.LIBEAY32_smt.dll_sk_num
add esp, 4
test eax, eax
jle 0x1007aba8
mov ecx, dword [esp + 0x18]
push ebx
push ecx
call sym.LIBEAY32_smt.dll_sk_value
mov ebp, eax
push ebp
push edi
push esi
call dword [esi + 0x28]
add esp, 0x14
test eax, eax
jne 0x1007abaa
mov edx, dword [esp + 0x18]
inc ebx
push edx
call sym.LIBEAY32_smt.dll_sk_num
add esp, 4
cmp ebx, eax
jl 0x1007ab7c
xor ebp, ebp
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x1007ac14
mov eax, dword [esi + 0x4c]
push ebp
push eax
call sym.LIBEAY32_smt.dll_sk_push
add esp, 8
test eax, eax
je 0x1007ac9e
mov ecx, dword [esp + 0x10]
push 0xa6
push str..cryptox509x509_vfy.c
push 3
add ecx, 0x10
push 1
push ecx
call sym.LIBEAY32_smt.dll_CRYPTO_add_lock
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
push edx
push eax
call sym.LIBEAY32_smt.dll_sk_delete_ptr
mov edi, dword [esi + 0x48]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
add esp, 0x1c
inc edi
inc eax
mov dword [esi + 0x48], edi
mov edi, dword [esp + 0x10]
cmp ecx, eax
mov dword [esp + 0x14], eax
jge 0x1007ab47
mov ecx, dword [esi + 0x4c]
push ecx
call sym.LIBEAY32_smt.dll_sk_num
mov edx, dword [esi + 0x4c]
lea ebx, [eax - 1]
push ebx
push edx
call sym.LIBEAY32_smt.dll_sk_value
mov edi, eax
push edi
call sym.LIBEAY32_smt.dll_X509_get_subject_name
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x1c
test eax, eax
je 0x1007acf8
mov eax, dword [esi + 0x4c]
push eax
call sym.LIBEAY32_smt.dll_sk_num
add esp, 4
cmp eax, 1
jne 0x1007ad9f
push edi
lea ecx, [esp + 0x14]
push esi
push ecx
call dword [esi + 0x24]
mov ebp, eax
add esp, 0xc
test ebp, ebp
jle 0x1007acbb
mov edx, dword [esp + 0x10]
push edx
push edi
call sym.LIBEAY32_smt.dll_X509_cmp
add esp, 8
test eax, eax
jne 0x1007acbb
push edi
call sym.LIBEAY32_smt.dll_X509_free
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x4c]
push edi
push ebx
push eax
call sym.LIBEAY32_smt.dll_sk_set
add esp, 0x10
mov dword [esi + 0x48], 0
jmp 0x1007acf8
push 0xa3
push str..cryptox509x509_vfy.c
push 0x41
push 0x7f
push 0xb
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x14
jmp 0x1007b0cd
cmp ebp, 1
mov dword [esi + 0x5c], 0x12
mov dword [esi + 0x60], edi
mov dword [esi + 0x58], ebx
jne 0x1007acda
mov ecx, dword [esp + 0x10]
push ecx
call sym.LIBEAY32_smt.dll_X509_free
add esp, 4
push esi
push 0
mov dword [esp + 0x2c], 1
call dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x1007b0cd
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
cmp dword [esp + 0x20], ebx
jl 0x1007ad52
push edi
call sym.LIBEAY32_smt.dll_X509_get_issuer_name
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x1007ad52
push edi
lea edx, [esp + 0x14]
push esi
push edx
call dword [esi + 0x24]
add esp, 0xc
test eax, eax
jl 0x1007b12d
je 0x1007ad52
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0x4c]
push edi
push eax
call sym.LIBEAY32_smt.dll_sk_push
add esp, 8
test eax, eax
je 0x1007b109
mov eax, dword [esp + 0x20]
inc ebx
cmp eax, ebx
jge 0x1007ad06
push edi
call sym.LIBEAY32_smt.dll_X509_get_issuer_name
push edi
push edi
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x1007ae0b
test ebp, ebp
je 0x1007add1
push ebp
push edi
push esi
call dword [esi + 0x28]
add esp, 0xc
test eax, eax
je 0x1007add1
mov ecx, dword [esi + 0x4c]
push ebp
push ecx
call sym.LIBEAY32_smt.dll_sk_push
add esp, 8
inc ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x60], ebp
mov dword [esi + 0x5c], 0x13
mov dword [esp + 0x1c], 0
jmp 0x1007ade9
mov edx, dword [esi + 0x4c]
push edx
call sym.LIBEAY32_smt.dll_sk_pop
mov ecx, dword [esi + 0x48]
mov ebx, dword [esp + 0x18]
dec ecx
dec ebx
mov ebp, eax
mov dword [esi + 0x48], ecx
mov ecx, dword [esi + 0x4c]
lea eax, [ebx - 1]
push eax
push ecx
mov dword [esp + 0x28], ebp
call sym.LIBEAY32_smt.dll_sk_value
add esp, 0xc
mov edi, eax
jmp 0x1007ad00
cmp dword [esi + 0x48], ebx
jl 0x1007addf
mov dword [esi + 0x5c], 0x14
jmp 0x1007ade6
mov dword [esi + 0x5c], 2
mov dword [esi + 0x60], edi
dec ebx
push esi
push 0
mov dword [esi + 0x58], ebx
mov dword [esp + 0x2c], 1
call dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
je 0x1007b0cd
mov edx, dword [esi + 0x14]
mov ebx, dword [esi + 0x20]
xor ebp, ebp
push str.OPENSSL_ALLOW_PROXY_CERTS
mov eax, dword [edx + 0xc]
mov dword [esp + 0x24], ebp
shr eax, 6
and eax, 1
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x1007ae46
mov dword [esp + 0x28], 1
mov eax, dword [esi + 0x48]
test eax, eax
jle 0x1007aff6
mov eax, dword [esi + 0x4c]
push ebp
push eax
call sym.LIBEAY32_smt.dll_sk_value
mov ecx, dword [esi + 0x14]
mov edi, eax
add esp, 8
test byte [ecx + 0xc], 0x10
jne 0x1007ae8e
mov eax, dword [edi + 0x28]
test ah, 2
je 0x1007ae8e
push esi
push 0
mov dword [esi + 0x5c], 0x22
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x1007affb
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1007aebb
mov eax, dword [edi + 0x28]
test ah, 4
je 0x1007aebb
push esi
push 0
mov dword [esi + 0x5c], 0x28
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x1007affb
push edi
call sym.LIBEAY32_smt.dll_X509_check_ca
mov ecx, dword [esp + 0x38]
add esp, 4
cmp ecx, 0xffffffff
je 0x1007aef2
test ecx, ecx
je 0x1007aee5
test eax, eax
je 0x1007af04
mov edx, dword [esi + 0x14]
test byte [edx + 0xc], 0x20
je 0x1007af21
cmp eax, 1
je 0x1007af21
jmp 0x1007af04
test eax, eax
je 0x1007af21
mov dword [esi + 0x5c], 0x25
jmp 0x1007af0b
mov ecx, dword [esi + 0x14]
test byte [ecx + 0xc], 0x20
je 0x1007af21
cmp eax, 1
je 0x1007af21
test eax, eax
je 0x1007af21
mov dword [esi + 0x5c], 0x18
push esi
push 0
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x1007affb
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x10]
test eax, eax
jle 0x1007af70
mov edx, dword [esp + 0x34]
xor ecx, ecx
test edx, edx
setg cl
push ecx
push eax
push edi
call sym.LIBEAY32_smt.dll_X509_check_purpose
add esp, 0xc
test eax, eax
je 0x1007af53
mov edx, dword [esi + 0x14]
test byte [edx + 0xc], 0x20
je 0x1007af70
cmp eax, 1
je 0x1007af70
push esi
push 0
mov dword [esi + 0x5c], 0x1a
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x1007affb
cmp ebp, 1
jle 0x1007afa2
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x1007afa2
mov ecx, dword [esp + 0x20]
lea edx, [eax + ecx + 1]
cmp ebp, edx
jle 0x1007afa2
push esi
push 0
mov dword [esi + 0x5c], 0x19
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x1007affb
mov eax, dword [edi + 0x28]
test ah, 4
je 0x1007afe2
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x1007afcf
cmp ebp, eax
jle 0x1007afcf
push esi
push 0
mov dword [esi + 0x5c], 0x26
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x1007affb
mov eax, dword [esp + 0x20]
mov dword [esp + 0x34], 0
inc eax
mov dword [esp + 0x20], eax
jmp 0x1007afea
mov dword [esp + 0x34], 1
mov eax, dword [esi + 0x48]
inc ebp
cmp ebp, eax
jl 0x1007ae51
mov eax, 1
test eax, eax
mov dword [esp + 0x34], eax
je 0x1007b0cd
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jle 0x1007b06b
mov ecx, dword [esi + 0x4c]
mov ebp, dword [esi + 0x20]
push ecx
call sym.LIBEAY32_smt.dll_sk_num
mov edx, dword [esi + 0x4c]
mov edi, eax
dec edi
push edi
push edx
call sym.LIBEAY32_smt.dll_sk_value
mov ebx, eax
mov eax, dword [esi + 0x14]
push 0
mov ecx, dword [eax + 0x14]
push ecx
push ebx
call sym.LIBEAY32_smt.dll_X509_check_trust
add esp, 0x18
cmp eax, 1
je 0x1007b073
cmp eax, 2
mov dword [esi + 0x58], edi
mov dword [esi + 0x60], ebx
jne 0x1007b058
mov dword [esi + 0x5c], 0x1c
jmp 0x1007b05f
mov dword [esi + 0x5c], 0x1b
push esi
push 0
call ebp
add esp, 8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x1007b0cd
mov edx, dword [esi + 0x4c]
push edx
push 0
call sym.LIBEAY32_smt.dll_X509_get_pubkey_parameters
push esi
call dword [esi + 0x2c]
add esp, 0xc
mov dword [esp + 0x34], eax
test eax, eax
je 0x1007b0cd
mov eax, dword [esi + 0x1c]
push esi
test eax, eax
je 0x1007b099
call eax
jmp 0x1007b09e
call fcn.1007b140
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x1007b0cd
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1007b0c5
mov eax, dword [esi + 0x14]
test byte [eax + 0xc], 0x80
je 0x1007b0c5
push esi
call dword [esi + 0x3c]
add esp, 4
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x1007b0db
mov ecx, dword [esi + 0x4c]
push ecx
push 0
call sym.LIBEAY32_smt.dll_X509_get_pubkey_parameters
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007b0ec
push eax
call sym.LIBEAY32_smt.dll_sk_free
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1007b0fd
push eax
call sym.LIBEAY32_smt.dll_X509_free
add esp, 4
mov eax, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, dword [esp + 0x10]
push edx
call sym.LIBEAY32_smt.dll_X509_free
push 0xfa
push str..cryptox509x509_vfy.c
push 0x41
push 0x7f
push 0xb
call sym.LIBEAY32_smt.dll_ERR_put_error
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret