Function at 0x47b0e0
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 0x47ba01
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x47b527
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47b520
mov dword [esp], eax
call fcn.0043bd50
test eax, eax
mov ebp, eax
je 0x47b581
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be40
mov esi, eax
lea eax, [eax - 1]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
mov edi, eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x18]
cmp esi, eax
mov dword [esp + 0x24], eax
jg 0x47b276
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x47b276
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x47b276
mov ecx, edi
mov edx, ebp
mov eax, ebx
call fcn.004799e0
test eax, eax
mov dword [esp + 0x4c], eax
je 0x47b276
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043bc20
test eax, eax
jne 0x47b222
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.00429800
mov dword [esp + 0x1c], 0
mov eax, dword [ebx + 0x54]
xor esi, esi
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0047af90
test ebp, ebp
je 0x47b200
mov dword [esp], ebp
call fcn.0043bd20
mov edx, dword [esp + 0x1c]
mov eax, esi
test edx, edx
je 0x47b21a
mov dword [esp], edx
mov dword [esp + 0x1c], esi
call fcn.00454210
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.0042aae0
mov eax, dword [esp + 0x4c]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.0043bbd0
mov edi, dword [esp + 0x4c]
add dword [ebx + 0x50], 1
cmp dword [esp + 0x24], esi
jge 0x47b160
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be40
sub eax, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
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 0x47b6d0
mov eax, dword [esp + 0x24]
cmp eax, esi
jl 0x47b327
mov dword [esp + 0x24], ebp
mov ebp, ebx
mov ebx, eax
jmp 0x47b30f
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 0x47b21a
je 0x47b321
mov edi, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x54]
mov dword [esp], eax
call fcn.0043bc20
test eax, eax
je 0x47b720
add esi, 1
cmp ebx, esi
jl 0x47b321
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebp
call dword [ebp + 0x28]
test eax, eax
je 0x47b2d1
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 0x47b398
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x47b35b
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 0x47b890
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 0x47b1df
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 0x47b9d0
mov esi, dword [ebx + 0x50]
test esi, esi
jle 0x47b769
mov dword [esp + 0x2c], 0
mov edi, 0xffffffff
xor esi, esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], ebp
jmp 0x47b405
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffffff
je 0x47b3f2
cmp esi, eax
jg 0x47b6a8
add dword [esp + 0x30], 1
xor edi, edi
add esi, 1
cmp esi, dword [ebx + 0x50]
jge 0x47b765
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
mov ebp, eax
mov eax, dword [ebx + 0x14]
test byte [eax + 0xc], 0x10
jne 0x47b429
test byte [ebp + 0x29], 2
jne 0x47b680
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x47b43b
test byte [ebp + 0x29], 4
jne 0x47b647
mov dword [esp], ebp
call fcn.00475490
cmp edi, 0xffffffff
je 0x47b630
test edi, edi
jne 0x47b600
test eax, eax
je 0x47b47e
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 0x47b670
mov ecx, dword [ebx + 0x14]
mov edx, dword [ecx + 0x10]
test edx, edx
jle 0x47b4db
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.004753c0
test eax, eax
je 0x47b4b5
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x47b4db
cmp eax, 1
je 0x47b4db
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 0x47b670
cmp esi, 1
jle 0x47b5ee
mov eax, dword [ebp + 0x28]
test al, 0x20
jne 0x47b50a
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xffffffff
je 0x47b505
mov edx, dword [esp + 0x30]
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x2c]
jl 0x47b5c8
add dword [esp + 0x2c], 1
test ah, 4
jne 0x47b3e2
mov edi, 1
jmp 0x47b3f9
xor ebp, ebp
jmp 0x47b12c
call fcn.0043ba80
test eax, eax
mov dword [ebx + 0x54], eax
je 0x47b546
mov edx, dword [ebx + 8]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0043bc20
test eax, eax
jne 0x47b58e
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.00429800
mov dword [esp + 0x1c], 0
jmp 0x47b1df
mov dword [esp + 0x10], 0xbc
jmp 0x47b1b3
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.0042aae0
mov dword [ebx + 0x50], 1
jmp 0x47b10f
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 0x47b670
mov eax, dword [ebp + 0x28]
test al, 0x20
je 0x47b505
jmp 0x47b50a
test eax, eax
je 0x47b620
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x47b481
cmp eax, 1
je 0x47b481
lea esi, [esi]
mov dword [ebx + 0x64], 0x18
jmp 0x47b45f
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x47b481
cmp eax, 1
ja 0x47b620
jmp 0x47b481
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 0x47b43b
lea esi, [esi]
mov ebp, dword [esp + 0x3c]
jmp 0x47b1df
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 0x47b429
jmp 0x47b670
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 0x47b3f2
jmp 0x47b670
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be40
cmp eax, 1
je 0x47b8c0
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043bcb0
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.0043be60
mov esi, dword [esp + 0x2c]
mov edi, eax
jmp 0x47b2bf
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
mov dword [esp], edx
call fcn.00454210
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.00429800
mov eax, dword [esp + 0x1c]
jmp 0x47b21a
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be40
sub eax, 1
mov edi, eax
js 0x47b813
mov dword [esp + 0x24], ebp
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
test edi, edi
mov ebp, eax
je 0x47b79e
test byte [eax + 0x28], 0x20
jne 0x47b803
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be40
lea esi, [eax - 1]
cmp esi, edi
jg 0x47b7b9
jmp 0x47b803
sub esi, 1
cmp esi, edi
je 0x47b803
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x47b7b2
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004768f0
test eax, eax
je 0x47b7b2
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 0x47b7b2
mov ebp, dword [esp + 0x24]
jmp 0x47b1df
sub edi, 1
cmp edi, 0xffffffff
jne 0x47b783
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
test eax, eax
jg 0x47b951
mov eax, dword [ebx + 0x54]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0047af90
mov dword [esp], ebx
call dword [ebx + 0x2c]
test eax, eax
je 0x47b1df
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebx
test eax, eax
je 0x47ba90
call eax
mov esi, eax
test esi, esi
je 0x47b1df
cmp dword [esp + 0x38], 0
jne 0x47b1f4
mov eax, dword [ebx + 0x14]
test byte [eax + 0xc], 0x80
je 0x47b1f4
mov dword [esp], ebx
call dword [ebx + 0x3c]
test eax, eax
mov esi, eax
je 0x47b1df
jmp 0x47b1f4
mov edi, dword [esp + 0x1c]
add esi, 1
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043bc20
mov dword [ebx + 0x50], esi
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x64], 0x13
mov dword [esp + 0x1c], 0
jmp 0x47b371
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 0x47b93e
mov eax, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004539e0
test eax, eax
je 0x47ba37
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 0x47ba6e
mov eax, dword [esp + 0x28]
mov dword [esp + 4], ebx
mov dword [esp], 0
call eax
test eax, eax
je 0x47b1d7
mov dword [esp + 0x38], 1
mov dword [esp + 0x1c], 0
jmp 0x47b2bf
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], edi
mov dword [ebx + 0x60], eax
jmp 0x47b910
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be40
lea esi, [eax - 1]
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.0043be60
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.004964e0
cmp eax, 1
je 0x47b822
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 0x47b1df
jmp 0x47b822
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 0x47ba7f
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x34], eax
jmp 0x47b3ba
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.00429800
mov eax, 0xffffffff
jmp 0x47b21a
mov dword [esp], edi
call fcn.00454210
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.0043be90
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x50], 0
mov dword [esp + 0x38], eax
jmp 0x47b2bf
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00454210
jmp 0x47b910
shr esi, 6
mov dword [esp + 0x28], esi
and dword [esp + 0x28], 1
jmp 0x47b9f2
call fcn.0047acc0
mov esi, eax
jmp 0x47b855