Function at 0x4ad2e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x3c], edx
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x4adc24
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0x54]
test edx, edx
je 0x4ad7a8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4ad7a1
mov dword [esp], eax
call fcn.004b3100
mov edi, eax
test eax, eax
je 0x4ad806
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3aa0
mov dword [esp + 0x30], eax
dec eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov dword [esp + 0x2c], eax
mov edx, dword [esp + 0x3c]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x34], edx
cmp dword [esp + 0x30], edx
jg 0x4ad3cd
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x4ad3cd
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4ad3cd
xor esi, esi
jmp 0x4ad3b9
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004b3ac0
mov ebp, eax
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x4ad690
inc esi
mov dword [esp], edi
call fcn.004b3aa0
cmp esi, eax
jl 0x4ad390
mov dword [esp + 0x5c], 0
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3aa0
lea ebp, [eax - 1]
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov esi, eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x4ad813
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], eax
jl 0x4ad487
lea ebp, [esp + 0x5c]
mov dword [esp + 0x40], edi
mov edi, ebx
mov ebx, eax
jmp 0x4ad46b
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebp
call dword [edi + 0x24]
cmp eax, 0
jl 0x4ad72c
je 0x4ad47d
mov esi, dword [esp + 0x5c]
mov dword [esp + 4], esi
mov eax, dword [edi + 0x54]
mov dword [esp], eax
call fcn.004b3770
test eax, eax
je 0x4adae0
inc ebx
cmp dword [esp + 0x34], ebx
jl 0x4ad47d
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [edi + 0x28]
test eax, eax
je 0x4ad430
mov dword [esp + 0x30], ebx
mov ebx, edi
mov edi, dword [esp + 0x40]
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x4ad4fc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4ad4bb
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
jne 0x4adb29
mov eax, dword [esp + 0x30]
cmp dword [ebx + 0x50], eax
jge 0x4adb1f
mov eax, 2
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x68], esi
mov eax, dword [esp + 0x30]
dec eax
mov dword [ebx + 0x60], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x38]
call edx
test eax, eax
je 0x4ad6e7
mov dword [esp + 0x48], 1
mov edx, dword [ebx + 0x20]
mov dword [esp + 0x30], edx
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4adbf3
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 6
mov eax, dword [ebx + 0x50]
test eax, eax
jle 0x4ad9b4
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 0
mov edx, 0xffffffff
xor esi, esi
mov dword [esp + 0x4c], edi
mov edi, edx
jmp 0x4ad570
mov eax, dword [ebp + 0x24]
cmp eax, 0xffffffff
je 0x4ad560
cmp esi, eax
jg 0x4ad980
inc dword [esp + 0x34]
xor edi, edi
inc esi
cmp esi, dword [ebx + 0x50]
jge 0x4ad9b0
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov ebp, eax
mov eax, dword [ebx + 0x14]
test byte [eax + 0xc], 0x10
jne 0x4ad594
test byte [ebp + 0x29], 2
jne 0x4ad94f
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x4ad5a6
test byte [ebp + 0x29], 4
jne 0x4ad920
mov dword [esp], ebp
call fcn.004bc830
cmp edi, 0xffffffff
je 0x4ad900
test edi, edi
jne 0x4ad8d0
test eax, eax
je 0x4ad5e9
mov dword [ebx + 0x64], 0x25
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x30]
call edx
test eax, eax
je 0x4ad946
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0x10]
test eax, eax
jle 0x4ad647
test edi, edi
setg al
and eax, 0xff
mov dword [esp + 8], eax
mov edx, dword [esp + 0x44]
mov dword [esp + 4], edx
mov dword [esp], ebp
call fcn.004bbfa0
test eax, eax
je 0x4ad621
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x4ad647
dec eax
je 0x4ad647
mov dword [ebx + 0x64], 0x1a
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x30]
call edx
test eax, eax
je 0x4ad946
cmp esi, 1
jle 0x4ad8be
mov eax, dword [ebp + 0x28]
test al, 0x20
jne 0x4ad675
mov ecx, dword [ebp + 0x20]
cmp ecx, 0xffffffff
je 0x4ad671
mov edx, dword [esp + 0x34]
lea ecx, [edx + ecx + 1]
cmp ecx, dword [esp + 0x38]
jl 0x4ad898
inc dword [esp + 0x38]
test ah, 4
jne 0x4ad550
mov edi, 1
jmp 0x4ad566
mov dword [esp + 0x5c], ebp
test ebp, ebp
je 0x4ad3cd
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3770
test eax, eax
jne 0x4ad740
mov dword [esp + 0x10], 0xd9
mov dword [esp + 0xc], str.x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004b26a0
mov dword [esp + 0x2c], 0
mov eax, dword [ebx + 0x54]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004ad170
xor eax, eax
test edi, edi
je 0x4ad710
mov dword [esp], edi
mov dword [esp + 0x28], eax
call fcn.004b3a60
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x4ad72c
mov edx, dword [esp + 0x2c]
mov dword [esp], edx
mov dword [esp + 0x28], eax
call fcn.004b8eb0
mov eax, dword [esp + 0x28]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xdc
mov dword [esp + 0xc], str.x509_vfy.c
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov eax, dword [esp + 0x5c]
add eax, 0x10
mov dword [esp], eax
call fcn.004d3260
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004b34c0
inc dword [ebx + 0x50]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x2c], eax
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x34], eax
jge 0x4ad363
jmp 0x4ad3cd
xor edi, edi
jmp 0x4ad32f
call fcn.004b3290
mov dword [ebx + 0x54], eax
test eax, eax
je 0x4ad7cb
mov edx, dword [ebx + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b3770
test eax, eax
jne 0x4ad85e
mov dword [esp + 0x10], 0xb1
mov dword [esp + 0xc], str.x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004b26a0
xor edi, edi
mov dword [esp + 0x2c], 0
jmp 0x4ad6e7
mov dword [esp + 0x10], 0xbc
jmp 0x4ad6bb
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3aa0
dec eax
je 0x4adb62
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3930
mov dword [esp + 0x2c], eax
dec dword [ebx + 0x50]
dec dword [esp + 0x30]
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov esi, eax
mov dword [esp + 0x48], 0
jmp 0x4ad412
mov dword [esp + 0x10], 0xb4
mov dword [esp + 0xc], str.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.004d3260
mov dword [ebx + 0x50], 1
jmp 0x4ad312
mov dword [ebx + 0x64], 0x19
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x30]
call edx
test eax, eax
je 0x4ad946
mov eax, dword [ebp + 0x28]
test al, 0x20
je 0x4ad671
jmp 0x4ad675
test eax, eax
je 0x4ad8e8
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x4ad5ec
dec eax
je 0x4ad5ec
mov dword [ebx + 0x64], 0x18
jmp 0x4ad5ca
mov ecx, dword [ebx + 0x14]
test byte [ecx + 0xc], 0x20
je 0x4ad5ec
cmp eax, 1
je 0x4ad5ec
test eax, eax
je 0x4ad5ec
jmp 0x4ad8e8
mov dword [ebx + 0x64], 0x28
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x30]
call edx
test eax, eax
jne 0x4ad5a6
mov edi, dword [esp + 0x4c]
jmp 0x4ad6e7
mov dword [ebx + 0x64], 0x22
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x30]
call edx
test eax, eax
jne 0x4ad594
jmp 0x4ad946
mov dword [ebx + 0x64], 0x26
mov dword [ebx + 0x60], esi
mov dword [ebx + 0x68], ebp
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x30]
call edx
test eax, eax
jne 0x4ad560
jmp 0x4ad946
mov edi, dword [esp + 0x4c]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3aa0
mov edx, eax
dec edx
js 0x4ada5d
mov dword [esp + 0x30], edi
mov edi, edx
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov ebp, eax
test edi, edi
je 0x4ad9e9
test byte [eax + 0x28], 0x20
jne 0x4ada4f
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3aa0
lea esi, [eax - 1]
cmp esi, edi
jg 0x4ada05
jmp 0x4ada4f
dec esi
cmp esi, edi
je 0x4ada4f
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x4ada00
mov dword [esp + 4], eax
mov dword [esp], ebp
call fcn.004fbde0
test eax, eax
je 0x4ada00
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 0x4ada00
mov edi, dword [esp + 0x30]
jmp 0x4ad6e7
dec edi
cmp edi, 0xffffffff
jne 0x4ad9ce
mov edi, dword [esp + 0x30]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x14]
test eax, eax
jg 0x4adc5a
mov eax, dword [ebx + 0x54]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004ad170
mov dword [esp], ebx
call dword [ebx + 0x2c]
test eax, eax
je 0x4ad6e7
mov eax, dword [ebx + 0x1c]
mov dword [esp], ebx
test eax, eax
je 0x4add1b
call eax
test eax, eax
je 0x4ad6e7
mov ecx, dword [esp + 0x48]
test ecx, ecx
jne 0x4ad6fc
mov edx, dword [ebx + 0x14]
test byte [edx + 0xc], 0x80
je 0x4ad6fc
mov dword [esp], ebx
call dword [ebx + 0x3c]
test eax, eax
jne 0x4ad6fc
jmp 0x4ad6e7
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004b8eb0
mov dword [esp + 0x10], 0x12e
mov dword [esp + 0xc], str.x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004b26a0
xor eax, eax
jmp 0x4ad72c
mov eax, 0x14
jmp 0x4ad4cd
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3770
inc dword [esp + 0x30]
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x50], eax
mov eax, dword [esp + 0x2c]
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x64], 0x13
mov dword [esp + 0x2c], 0
jmp 0x4ad4d3
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
lea eax, [esp + 0x5c]
mov dword [esp], eax
call dword [ebx + 0x24]
mov edx, eax
test eax, eax
jle 0x4adbe4
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [esp + 0x28], edx
call fcn.004af150
test eax, eax
mov edx, dword [esp + 0x28]
je 0x4adce0
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x60], ebp
dec edx
jne 0x4adbb6
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call fcn.004b8eb0
mov dword [esp + 4], ebx
mov dword [esp], 0
mov edx, dword [esp + 0x38]
call edx
test eax, eax
je 0x4ad6df
mov dword [esp + 0x48], 1
mov dword [esp + 0x2c], 0
jmp 0x4ad412
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], esi
mov dword [ebx + 0x60], ebp
jmp 0x4adbb6
mov eax, dword [ebx + 0x14]
mov esi, dword [eax + 0xc]
mov dword [esp], str.OPENSSL_ALLOW_PROXY_CERTS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4add25
mov dword [esp + 0x40], 1
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x44], eax
jmp 0x4ad51e
mov dword [esp + 0x10], 0xa4
mov dword [esp + 0xc], str.x509_vfy.c
mov dword [esp + 8], 0x69
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004b26a0
mov eax, 0xffffffff
jmp 0x4ad72c
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
mov dword [esp + 0x28], edx
call fcn.004b3aa0
lea ebp, [eax - 1]
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3ac0
mov esi, eax
mov dword [esp + 8], 0
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.004fc260
cmp eax, 1
mov edx, dword [esp + 0x28]
je 0x4ada6c
mov dword [ebx + 0x60], ebp
mov dword [ebx + 0x68], esi
cmp eax, 2
sete al
and eax, 0xff
add eax, 0x1b
mov dword [ebx + 0x64], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call edx
test eax, eax
je 0x4ad6e7
jmp 0x4ada6c
mov dword [esp], esi
call fcn.004b8eb0
mov esi, dword [esp + 0x5c]
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004b3af0
mov dword [ebx + 0x50], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x2c], 0
jmp 0x4ad412
call fcn.004ac0c0
jmp 0x4ada9d
shr esi, 6
mov dword [esp + 0x40], esi
and dword [esp + 0x40], 1
jmp 0x4adc15