Function at 0x47b5f0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 8]
test eax, eax
je 0x47bf11
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x47ba37
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47ba30
mov dword [esp], eax
call fcn.0043bf90
test eax, eax
mov ebp, eax
je 0x47ba91
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c080
mov esi, eax
lea eax, [eax - 1]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
mov edi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
cmp esi, eax
mov dword [esp + 0x24], eax
jg 0x47b786
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x47b786
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47b786
mov ecx, edi
mov edx, ebp
mov eax, ebx
call fcn.00479ef0
test eax, eax
mov dword [esp + 0x4c], eax
je 0x47b786
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
test eax, eax
jne 0x47b732
mov dword [esp + 0x10], 0xd9
mov dword [esp + 0xc], str.external_openssl_crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.00429970
mov dword [esp + 0x1c], 0
mov eax, dword [ebx + 0x54]
xor esi, esi
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0047b4a0
test ebp, ebp
je 0x47b710
mov dword [esp], ebp
call fcn.0043bf60
mov edx, dword [esp + 0x1c]
mov eax, esi
test edx, edx
je 0x47b72a
mov dword [esp], edx
mov dword [esp + 0x1c], esi
call fcn.00454590
mov eax, dword [esp + 0x1c]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x4c]
add esi, 1
mov dword [esp + 0x10], 0xdc
mov dword [esp + 0xc], str.external_openssl_crypto_x509_x509_vfy.c
mov dword [esp + 8], 3
add eax, 0x10
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0042ac50
mov eax, dword [esp + 0x4c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0043be10
mov edi, dword [esp + 0x4c]
add dword [ebx + 0x50], 1
cmp dword [esp + 0x24], esi
jge 0x47b670
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c080
sub eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp], ebx
mov edi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
call dword [ebx + 0x28]
mov dword [esp + 0x38], 0
mov dword [esp + 0x1c], 0
test eax, eax
jne 0x47bbe0
mov eax, dword [esp + 0x24]
cmp eax, esi
jl 0x47b837
mov dword [esp + 0x24], ebp
mov ebp, ebx
mov ebx, eax
jmp 0x47b81f
lea eax, [esp + 0x4c]
mov dword [esp + 8], edi
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [ebp + 0x24]
test eax, eax
js 0x47b72a
je 0x47b831
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x54]
mov dword [esp], eax
call fcn.0043be60
test eax, eax
je 0x47bc30
add esi, 1
cmp ebx, esi
jl 0x47b831
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebp
call dword [ebp + 0x28]
test eax, eax
je 0x47b7e1
mov ebx, ebp
mov ebp, dword [esp + 0x24]
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x47b8a8
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47b86b
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [esp + 8], eax
call dword [ebx + 0x28]
test eax, eax
jne 0x47bda0
cmp dword [ebx + 0x50], esi
mov eax, 2
mov edx, 0x14
mov dword [ebx + 0x68], edi
cmovge eax, edx
mov dword [ebx + 0x64], eax
sub esi, 1
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x60], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47b6ef
mov dword [esp + 0x38], 1
mov edi, dword [ebx + 0x7c]
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x34], 6
test edi, edi
mov dword [esp + 0x24], eax
je 0x47bee0
mov esi, dword [ebx + 0x50]
test esi, esi
jle 0x47bc79
mov dword [esp + 0x2c], 0
mov edi, 0xffffffff
xor esi, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], ebp
jmp 0x47b915
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffffff
je 0x47b902
cmp esi, eax
jg 0x47bbb8
add dword [esp + 0x30], 1
xor edi, edi
add esi, 1
cmp esi, dword [ebx + 0x50]
jge 0x47bc75
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
mov ebp, eax
mov eax, dword [ebx + 0x14]
test byte [eax + 0xc], 0x10
jne 0x47b939
test byte [ebp + 0x29], 2
jne 0x47bb90
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x47b94b
test byte [ebp + 0x29], 4
jne 0x47bb57
mov dword [esp], ebp
call fcn.004759a0
cmp edi, 0xffffffff
je 0x47bb40
test edi, edi
jne 0x47bb10
test eax, eax
je 0x47b98e
mov dword [ebx + 0x64], 0x25
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47bb80
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + 0x10]
test edx, edx
jle 0x47b9eb
xor eax, eax
test edi, edi
setg al
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.004758d0
test eax, eax
je 0x47b9c5
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x47b9eb
cmp eax, 1
je 0x47b9eb
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x64], 0x1a
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47bb80
cmp esi, 1
jle 0x47bafe
mov eax, dword [ebp + 0x28]
test al, 0x20
jne 0x47ba1a
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xffffffff
je 0x47ba15
mov edx, dword [esp + 0x30]
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x2c]
jl 0x47bad8
add dword [esp + 0x2c], 1
test ah, 4
jne 0x47b8f2
mov edi, 1
jmp 0x47b909
xor ebp, ebp
jmp 0x47b63c
call fcn.0043bcc0
test eax, eax
mov dword [ebx + 0x54], eax
je 0x47ba56
mov edx, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0043be60
test eax, eax
jne 0x47ba9e
mov dword [esp + 0x10], 0xb1
xor ebp, ebp
mov dword [esp + 0xc], str.external_openssl_crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.00429970
mov dword [esp + 0x1c], 0
jmp 0x47b6ef
mov dword [esp + 0x10], 0xbc
jmp 0x47b6c3
mov dword [esp + 0x10], 0xb4
mov dword [esp + 0xc], str.external_openssl_crypto_x509_x509_vfy.c
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov eax, dword [ebx + 8]
add eax, 0x10
mov dword [esp], eax
call fcn.0042ac50
mov dword [ebx + 0x50], 1
jmp 0x47b61f
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x64], 0x19
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47bb80
mov eax, dword [ebp + 0x28]
test al, 0x20
je 0x47ba15
jmp 0x47ba1a
test eax, eax
je 0x47bb30
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x47b991
cmp eax, 1
je 0x47b991
lea esi, [esi]
mov dword [ebx + 0x64], 0x18
jmp 0x47b96f
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x47b991
cmp eax, 1
ja 0x47bb30
jmp 0x47b991
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x64], 0x28
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
jne 0x47b94b
lea esi, [esi]
mov ebp, dword [esp + 0x3c]
jmp 0x47b6ef
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x64], 0x22
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
jne 0x47b939
jmp 0x47bb80
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x64], 0x26
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
jne 0x47b902
jmp 0x47bb80
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c080
cmp eax, 1
je 0x47bdd0
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043bef0
sub dword [ebx + 0x50], 1
mov dword [esp + 0x1c], eax
lea eax, [esi - 1]
sub esi, 2
mov dword [esp + 4], esi
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
mov esi, dword [esp + 0x2c]
mov edi, eax
jmp 0x47b7cf
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call fcn.00454590
mov dword [esp + 0x10], 0x12e
mov dword [esp + 0xc], str.external_openssl_crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.00429970
mov eax, dword [esp + 0x1c]
jmp 0x47b72a
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c080
sub eax, 1
mov edi, eax
js 0x47bd23
mov dword [esp + 0x24], ebp
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
test edi, edi
mov ebp, eax
je 0x47bcae
test byte [eax + 0x28], 0x20
jne 0x47bd13
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c080
lea esi, [eax - 1]
cmp esi, edi
jg 0x47bcc9
jmp 0x47bd13
sub esi, 1
cmp esi, edi
je 0x47bd13
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x47bcc2
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.00476e00
test eax, eax
je 0x47bcc2
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebx + 0x20]
test eax, eax
jne 0x47bcc2
mov ebp, dword [esp + 0x24]
jmp 0x47b6ef
sub edi, 1
cmp edi, 0xffffffff
jne 0x47bc93
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
jg 0x47be61
mov eax, dword [ebx + 0x54]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0047b4a0
mov dword [esp], ebx
call dword [ebx + 0x2c]
test eax, eax
je 0x47b6ef
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebx
test eax, eax
je 0x47bfa0
call eax
mov esi, eax
test esi, esi
je 0x47b6ef
cmp dword [esp + 0x38], 0
jne 0x47b704
mov eax, dword [ebx + 0x14]
test byte [eax + 0xc], 0x80
je 0x47b704
mov dword [esp], ebx
call dword [ebx + 0x3c]
test eax, eax
mov esi, eax
je 0x47b6ef
jmp 0x47b704
mov edi, dword [esp + 0x1c]
add esi, 1
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x64], 0x13
mov dword [esp + 0x1c], 0
jmp 0x47b881
lea eax, [esp + 0x4c]
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [ebx + 0x24]
test eax, eax
mov dword [esp + 0x30], eax
jle 0x47be4e
mov eax, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00453d60
test eax, eax
je 0x47bf47
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], edi
cmp edx, 1
mov dword [ebx + 0x60], eax
je 0x47bf7e
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47b6e7
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], 0
jmp 0x47b7cf
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x60], eax
jmp 0x47be20
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c080
lea esi, [eax - 1]
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0a0
mov dword [esp + 8], 0
mov edi, eax
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x14]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.00496a70
cmp eax, 1
je 0x47bd32
cmp eax, 2
sete al
movzx eax, al
add eax, 0x1b
mov dword [ebx + 0x64], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], edi
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47b6ef
jmp 0x47bd32
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + 0xc]
mov dword [esp], str.OPENSSL_ALLOW_PROXY_CERTS
call sub.msvcrt.dll_getenv
mov dword [esp + 0x28], 1
test eax, eax
je 0x47bf8f
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
jmp 0x47b8ca
mov dword [esp + 0x10], 0xa4
mov dword [esp + 0xc], str.external_openssl_crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x69
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.00429970
mov eax, 0xffffffff
jmp 0x47b72a
mov dword [esp], edi
call fcn.00454590
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043c0d0
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x50], 0
mov dword [esp + 0x38], eax
jmp 0x47b7cf
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00454590
jmp 0x47be20
shr esi, 6
mov dword [esp + 0x28], esi
and dword [esp + 0x28], 1
jmp 0x47bf02
call fcn.0047b1d0
mov esi, eax
jmp 0x47bd65