Function at 0x1008c930
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.100bf140
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 0x1008c974
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 6
jmp 0x1008c9a6
mov eax, dword [esi + 0x14]
push str.OPENSSL_ALLOW_PROXY_CERTS
mov edi, dword [eax + 0x14]
shr edi, 6
and edi, 1
call dword [sym.imp.MSVCR120.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 0x1008cb68
push ebx
push dword [esi + 0x54]
call sym.LIBEAY32.dll_sk_value
mov ecx, dword [esi + 0x14]
add esp, 8
mov edi, eax
test byte [ecx + 0x14], 0x10
jne 0x1008c9f0
test dword [edi + 0x28], 0x200
je 0x1008c9f0
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 0x1008cb6d
cmp dword [esp + 0x18], 0
jne 0x1008ca1f
test dword [edi + 0x28], 0x400
je 0x1008ca1f
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 0x1008cb6d
push edi
call sym.LIBEAY32.dll_X509_check_ca
add esp, 4
mov ecx, eax
cmp ebp, 0xffffffff
je 0x1008ca52
test ebp, ebp
je 0x1008ca45
test ecx, ecx
je 0x1008ca64
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x1008ca83
cmp ecx, 1
jmp 0x1008ca62
test ecx, ecx
je 0x1008ca83
mov dword [esi + 0x64], 0x25
jmp 0x1008ca6b
mov eax, dword [esi + 0x14]
test byte [eax + 0x14], 0x20
je 0x1008ca83
cmp ecx, 1
je 0x1008ca83
test ecx, ecx
je 0x1008ca83
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 0x1008cb6d
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x18], 0
jle 0x1008cad6
xor eax, eax
test ebp, ebp
setg al
push eax
push dword [esp + 0x20]
push edi
call sym.LIBEAY32.dll_X509_check_purpose
add esp, 0xc
test eax, eax
je 0x1008cab3
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x1008cad6
cmp eax, 1
je 0x1008cad6
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 0x1008cb6d
jmp 0x1008cada
mov ebp, dword [esp + 0x24]
cmp ebx, 1
jle 0x1008cb15
test byte [edi + 0x28], 0x20
jne 0x1008cb15
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x1008cb15
mov ecx, dword [esp + 0x14]
inc ecx
add eax, ecx
mov ecx, dword [esp + 0x10]
cmp ecx, eax
jle 0x1008cb19
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 0x1008cb6d
mov ecx, dword [esp + 0x10]
mov eax, dword [edi + 0x28]
test al, 0x20
jne 0x1008cb25
inc ecx
mov dword [esp + 0x10], ecx
test eax, 0x400
je 0x1008cb59
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x1008cb51
cmp ebx, eax
jle 0x1008cb51
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 0x1008cb6d
inc dword [esp + 0x14]
xor ebp, ebp
jmp 0x1008cb5e
mov ebp, 1
inc ebx
cmp ebx, dword [esi + 0x50]
jl 0x1008c9b1
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret