Function at 0x507428
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x507d47
mov edx, dword [ebx + 0x20]
mov dword [ebp - 0x34], edx
mov edx, dword [ebx + 0x54]
test edx, edx
je 0x507890
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x507888
mov dword [esp], eax
call fcn.004f2f5c
mov edi, eax
test eax, eax
je 0x5078ec
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2fe4
mov esi, eax
lea eax, [eax - 1]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2ffc
mov ecx, dword [ebp - 0x38]
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x2c], ecx
cmp esi, ecx
jg 0x5075c8
mov ecx, eax
mov dword [esp], ecx
mov dword [ebp - 0x54], ecx
call fcn.004f4978
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
mov ecx, dword [ebp - 0x54]
jne 0x5075c8
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x5075c8
mov edx, edi
mov eax, ebx
call fcn.00505e78
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x5075c8
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2e24
test eax, eax
jne 0x507578
mov dword [esp + 0x10], 0xdb
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004f2144
mov dword [ebp - 0x30], 0
mov eax, dword [ebx + 0x54]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.005072e0
xor eax, eax
test edi, edi
je 0x507558
mov dword [esp], edi
mov dword [ebp - 0x54], eax
call fcn.004f2ee4
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x507570
mov edx, dword [ebp - 0x30]
mov dword [esp], edx
mov dword [ebp - 0x54], eax
call fcn.004ea610
mov eax, dword [ebp - 0x54]
add esp, 0x6c
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 0x10], 0xde
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0x10
mov dword [esp], eax
call fcn.004f37ac
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004f2de8
inc dword [ebx + 0x50]
mov ecx, dword [ebp - 0x1c]
inc esi
cmp dword [ebp - 0x2c], esi
jge 0x5074a5
lea esi, [esi]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2fe4
dec eax
mov dword [ebp - 0x30], eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2ffc
mov dword [esp], eax
mov dword [ebp - 0x54], eax
call fcn.004f4988
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
mov ecx, dword [ebp - 0x54]
jne 0x507a28
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x2c], esi
jl 0x50768b
mov dword [ebp - 0x3c], edi
mov edi, esi
mov esi, ebx
mov ebx, ecx
jmp 0x507668
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
lea ecx, [ebp - 0x1c]
mov dword [esp], ecx
call dword [esi + 0x24]
cmp eax, 0
jl 0x507570
je 0x507682
mov ebx, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x54]
mov dword [esp], eax
call fcn.004f2e24
test eax, eax
je 0x507a70
inc edi
cmp dword [ebp - 0x2c], edi
jl 0x507682
mov dword [esp], ebx
call fcn.004f4978
mov dword [esp + 8], ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call dword [esi + 0x28]
test eax, eax
je 0x50762c
mov ecx, ebx
mov ebx, esi
mov esi, edi
mov edi, dword [ebp - 0x3c]
mov dword [esp], ecx
mov dword [ebp - 0x54], ecx
call fcn.004f4978
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
mov ecx, dword [ebp - 0x54]
jne 0x507705
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x5076d1
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], ebx
call dword [ebx + 0x28]
test eax, eax
mov ecx, dword [ebp - 0x54]
jne 0x507bd8
cmp dword [ebx + 0x50], esi
jl 0x507bcc
mov dword [ebx + 0x64], 0x14
mov dword [ebx + 0x68], ecx
dec esi
mov dword [ebx + 0x60], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
je 0x507531
mov dword [ebp - 0x4c], 1
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x507d18
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x48], 6
mov esi, dword [ebx + 0x50]
test esi, esi
jle 0x507ab3
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x50], edi
mov edi, eax
jmp 0x507774
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x507760
cmp eax, edi
jl 0x507a00
inc dword [ebp - 0x40]
mov dword [ebp - 0x2c], 0
inc edi
cmp edi, dword [ebx + 0x50]
jge 0x507ab0
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2ffc
mov esi, eax
mov eax, dword [ebx + 0x14]
test byte [eax + 0xc], 0x10
jne 0x507798
test byte [esi + 0x29], 2
jne 0x5079d8
mov ecx, dword [ebp - 0x44]
test ecx, ecx
jne 0x5077a9
test byte [esi + 0x29], 4
jne 0x5079ac
mov dword [esp], esi
call fcn.004f8e28
cmp dword [ebp - 0x2c], 0xffffffff
je 0x50798c
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x507968
test eax, eax
je 0x5077ed
mov dword [ebx + 0x64], 0x25
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
je 0x5079d0
mov edx, dword [ebx + 0x14]
mov ecx, dword [edx + 0x10]
test ecx, ecx
jle 0x507846
xor eax, eax
cmp dword [ebp - 0x2c], 0
setg al
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x48]
mov dword [esp + 4], ecx
mov dword [esp], esi
call fcn.004f8d70
test eax, eax
je 0x507823
mov edx, dword [ebx + 0x14]
test byte [edx + 0xc], 0x20
je 0x507846
dec eax
je 0x507846
mov dword [ebx + 0x64], 0x1a
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
je 0x5079d0
cmp edi, 1
jle 0x507957
mov eax, dword [esi + 0x28]
test al, 0x20
jne 0x507871
mov edx, dword [esi + 0x20]
cmp edx, 0xffffffff
je 0x50786e
mov ecx, dword [ebp - 0x40]
lea edx, [ecx + edx + 1]
cmp dword [ebp - 0x3c], edx
jg 0x507938
inc dword [ebp - 0x3c]
test ah, 4
jne 0x507750
mov dword [ebp - 0x2c], 1
jmp 0x50776a
xor edi, edi
jmp 0x507473
call fcn.004f2cf4
mov dword [ebx + 0x54], eax
test eax, eax
je 0x5078af
mov edx, dword [ebx + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004f2e24
test eax, eax
jne 0x5078fc
mov dword [esp + 0x10], 0xb2
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004f2144
xor edi, edi
mov dword [ebp - 0x30], 0
jmp 0x507531
mov dword [esp + 0x10], 0xbd
jmp 0x507506
mov dword [esp + 0x10], 0xb5
mov dword [esp + 0xc], str.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.004f37ac
mov dword [ebx + 0x50], 1
jmp 0x507456
mov dword [ebx + 0x64], 0x19
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
je 0x5079d0
mov eax, dword [esi + 0x28]
test al, 0x20
je 0x50786e
jmp 0x507871
test eax, eax
je 0x507980
mov edx, dword [ebx + 0x14]
test byte [edx + 0xc], 0x20
je 0x5077f0
dec eax
je 0x5077f0
mov dword [ebx + 0x64], 0x18
jmp 0x5077d1
mov edx, dword [ebx + 0x14]
test byte [edx + 0xc], 0x20
je 0x5077f0
cmp eax, 1
je 0x5077f0
test eax, eax
je 0x5077f0
jmp 0x507980
mov dword [ebx + 0x64], 0x28
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
jne 0x5077a9
nop
mov edi, dword [ebp - 0x50]
jmp 0x507531
mov dword [ebx + 0x64], 0x22
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
jne 0x507798
jmp 0x5079d0
mov dword [ebx + 0x64], 0x26
mov dword [ebx + 0x60], edi
mov dword [ebx + 0x68], esi
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x34]
test eax, eax
jne 0x507760
jmp 0x5079d0
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2fe4
dec eax
mov ecx, dword [ebp - 0x54]
je 0x507c07
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2e94
mov dword [ebp - 0x30], eax
dec dword [ebx + 0x50]
dec esi
lea eax, [esi - 1]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2ffc
mov ecx, eax
mov dword [ebp - 0x4c], 0
jmp 0x50761b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004ea610
mov dword [esp + 0x10], 0x132
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004f2144
xor eax, eax
jmp 0x507570
mov edi, dword [ebp - 0x50]
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2fe4
dec eax
js 0x507b5a
mov dword [ebp - 0x34], edi
mov edi, eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2ffc
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x507ae6
test byte [eax + 0x28], 0x20
jne 0x507b50
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2fe4
lea esi, [eax - 1]
cmp esi, edi
jg 0x507b01
jmp 0x507b50
dec esi
cmp esi, edi
jle 0x507b50
mov dword [esp + 4], esi
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2ffc
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x507afc
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00513de0
test eax, eax
je 0x507afc
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x60], edi
mov edx, dword [ebp - 0x2c]
mov dword [ebx + 0x68], edx
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebx + 0x20]
test eax, eax
jne 0x507afc
mov edi, dword [ebp - 0x34]
jmp 0x507531
dec edi
jns 0x507aca
mov edi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x14]
test eax, eax
jg 0x507c99
mov eax, dword [ebx + 0x54]
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.005072e0
mov dword [esp], ebx
call dword [ebx + 0x2c]
test eax, eax
je 0x507531
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x507de4
mov dword [esp], ebx
call eax
test eax, eax
je 0x507531
cmp dword [ebp - 0x4c], 0
jne 0x507546
mov edx, dword [ebx + 0x14]
test byte [edx + 0xc], 0x80
je 0x507546
mov dword [esp], ebx
call dword [ebx + 0x3c]
test eax, eax
je 0x507531
jmp 0x507546
mov dword [ebx + 0x64], 2
jmp 0x5076e1
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2e24
inc esi
mov dword [ebx + 0x50], esi
mov ecx, dword [ebp - 0x30]
mov dword [ebx + 0x68], ecx
mov dword [ebx + 0x64], 0x13
mov dword [ebp - 0x30], 0
jmp 0x5076e4
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call dword [ebx + 0x24]
mov edx, eax
test eax, eax
mov ecx, dword [ebp - 0x54]
jle 0x507c87
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x58], edx
call fcn.004f49a8
test eax, eax
mov edx, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
je 0x507d7d
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x60], eax
dec edx
je 0x507dbe
mov dword [esp + 4], ebx
mov dword [esp], 0
mov dword [ebp - 0x54], ecx
call dword [ebp - 0x34]
test eax, eax
mov ecx, dword [ebp - 0x54]
je 0x50752a
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x30], 0
jmp 0x50761b
mov dword [ebx + 0x64], 0x12
mov dword [ebx + 0x68], ecx
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x60], eax
jmp 0x507c58
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
call fcn.004f2fe4
lea edx, [eax - 1]
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
mov dword [ebp - 0x58], edx
call fcn.004f2ffc
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.0052fb14
cmp eax, 1
mov edx, dword [ebp - 0x58]
je 0x507b68
mov dword [ebx + 0x60], edx
mov dword [ebx + 0x68], esi
cmp eax, 2
sete al
movzx eax, al
add eax, 0x1b
mov dword [ebx + 0x64], eax
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [ebp - 0x2c]
test eax, eax
je 0x507531
jmp 0x507b68
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 0x507dd1
mov dword [ebp - 0x44], 1
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x48], eax
jmp 0x507724
mov dword [esp + 0x10], 0xa5
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x69
mov dword [esp + 4], 0x7f
mov dword [esp], 0xb
call fcn.004f2144
mov eax, 0xffffffff
jmp 0x507570
mov dword [esp], ecx
call fcn.004ea610
mov ecx, dword [ebp - 0x1c]
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x30]
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x54]
mov dword [esp], eax
mov dword [ebp - 0x54], ecx
call fcn.004f3020
mov dword [ebx + 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x54]
jmp 0x50761b
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call fcn.004ea610
mov ecx, dword [ebp - 0x54]
jmp 0x507c58
xor edx, edx
test esi, 0x40
setne dl
mov dword [ebp - 0x44], edx
jmp 0x507d39
mov dword [esp], ebx
call fcn.00507030
jmp 0x507b99