Function at 0x4766d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x476fa6
mov edx, dword [esi + 0x20]
mov dword [ebp - 0x48], edx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x476e54
mov eax, dword [esi + 0xc]
test eax, eax
je 0x476cef
sub esp, 0xc
push eax
call fcn.0042e670
add esp, 0x10
mov dword [ebp - 0x44], eax
test eax, eax
je 0x476eac
sub esp, 0xc
mov ecx, dword [esi + 0x54]
push ecx
call fcn.0042e270
mov edi, eax
pop eax
pop edx
lea eax, [edi - 1]
push eax
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e290
mov ecx, dword [ebp - 0x54]
add esp, 0x10
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 0x50], ecx
cmp edi, ecx
jg 0x4767d4
mov ebx, eax
jmp 0x4767c6
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4767d4
mov ecx, ebx
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.00474be0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4767d4
push edx
push edx
push eax
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e5b0
add esp, 0x10
test eax, eax
je 0x476cfb
sub esp, 0xc
inc edi
push 0xdc
push str.external_openssl_crypto_x509_x509_vfy.c
push 3
push 1
mov eax, dword [ebp - 0x10]
add eax, 0x10
push eax
call fcn.00427970
add esp, 0x18
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x44]
push eax
call fcn.0042e1d0
mov eax, dword [esi + 0x50]
add esp, 0x10
inc eax
mov dword [esi + 0x50], eax
mov ebx, dword [ebp - 0x10]
cmp dword [ebp - 0x50], edi
jl 0x4767d4
push eax
push ebx
push ebx
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
je 0x476755
sub esp, 0xc
mov ebx, dword [esi + 0x54]
push ebx
call fcn.0042e270
dec eax
mov dword [ebp - 0x60], eax
pop edx
pop ecx
push eax
mov ebx, dword [esi + 0x54]
push ebx
call fcn.0042e290
add esp, 0xc
mov ebx, eax
push eax
push eax
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x476a6f
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
jmp 0x47685a
push eax
push ebx
push ebx
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x47685f
lea edx, [ebp - 0x10]
push eax
push ebx
push esi
push edx
call dword [esi + 0x24]
add esp, 0x10
mov dword [ebp - 0x4c], eax
cmp eax, 0
jl 0x476ba0
je 0x47685f
mov ebx, dword [ebp - 0x10]
push eax
push eax
push ebx
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e5b0
add esp, 0x10
test eax, eax
je 0x476d29
inc edi
cmp dword [ebp - 0x50], edi
jge 0x476816
push edx
push ebx
push ebx
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x4768c4
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x476889
push eax
mov eax, dword [ebp - 0x5c]
push eax
push ebx
push esi
call dword [esi + 0x28]
add esp, 0x10
test eax, eax
jne 0x476ece
cmp dword [esi + 0x50], edi
mov dword [esi + 0x68], ebx
setge al
and eax, 0xff
dec eax
and eax, 0xffffffee
add eax, 0x14
mov dword [esi + 0x64], eax
lea eax, [edi - 1]
mov dword [esi + 0x60], eax
push ebx
push ebx
push esi
push 0
call dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x476b64
mov dword [ebp - 0x58], 1
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x34], eax
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x476efd
mov dword [ebp - 0x3c], 6
mov dword [ebp - 0x40], 0
mov eax, dword [esi + 0x50]
test eax, eax
jle 0x476abc
xor edi, edi
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x38], 0
jmp 0x4769f5
test eax, eax
je 0x476939
mov dword [esi + 0x64], 0x25
nop
lea esi, [esi]
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ebx
push edx
push edx
push esi
push 0
call dword [ebp - 0x34]
add esp, 0x10
test eax, eax
je 0x476b5d
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 0x10]
test eax, eax
jle 0x476991
push eax
mov eax, dword [ebp - 0x2c]
test eax, eax
setg al
and eax, 0xff
push eax
mov eax, dword [ebp - 0x3c]
push eax
push ebx
call fcn.004715e0
add esp, 0x10
mov edx, eax
test eax, eax
je 0x476971
mov eax, dword [esi + 0x14]
test byte [eax + 0xc], 0x20
je 0x476991
dec edx
je 0x476991
mov dword [esi + 0x64], 0x1a
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ebx
push eax
push eax
push esi
push 0
call dword [ebp - 0x34]
add esp, 0x10
test eax, eax
je 0x476b5d
cmp edi, 1
jle 0x476bf3
mov edx, dword [ebx + 0x28]
test dl, 0x20
jne 0x4769c1
mov eax, dword [ebx + 0x20]
cmp eax, 0xffffffff
je 0x4769ba
mov ecx, dword [ebp - 0x38]
lea eax, [eax + ecx + 1]
cmp eax, dword [ebp - 0x30]
jl 0x476bd3
mov ecx, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x30], ecx
and dh, 4
mov dword [ebp - 0x2c], 1
je 0x4769eb
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x4769dd
cmp eax, edi
jl 0x476c58
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], 0
inc eax
mov dword [ebp - 0x38], eax
inc edi
cmp dword [esi + 0x50], edi
jle 0x476abc
push eax
push eax
push edi
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e290
mov ebx, eax
mov eax, dword [esi + 0x14]
add esp, 0x10
test byte [eax + 0xc], 0x10
jne 0x476a19
test byte [ebx + 0x29], 2
jne 0x476c30
mov eax, dword [ebp - 0x40]
test eax, eax
jne 0x476a2a
test byte [ebx + 0x29], 4
jne 0x476c04
sub esp, 0xc
push ebx
call fcn.004712e0
add esp, 0x10
cmp dword [ebp - 0x2c], 0xffffffff
je 0x476bb0
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x476910
test eax, eax
je 0x476a63
mov edx, dword [esi + 0x14]
test byte [edx + 0xc], 0x20
je 0x47693c
dec eax
je 0x47693c
mov dword [esi + 0x64], 0x18
jmp 0x476920
sub esp, 0xc
mov ecx, dword [esi + 0x54]
push ecx
call fcn.0042e270
add esp, 0x10
dec eax
je 0x476c7d
sub esp, 0xc
mov ebx, dword [esi + 0x54]
dec edi
push ebx
call fcn.0042e240
mov dword [ebp - 0x5c], eax
mov ecx, dword [esi + 0x50]
dec ecx
mov dword [esi + 0x50], ecx
pop eax
lea eax, [edi - 1]
pop edx
push eax
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e290
add esp, 0x10
mov ebx, eax
mov dword [ebp - 0x58], 0
jmp 0x47685a
sub esp, 0xc
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e270
mov edi, eax
add esp, 0x10
dec edi
js 0x476d6b
push eax
push eax
push edi
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e290
add esp, 0x10
mov dword [ebp - 0x28], eax
test edi, edi
je 0x476af4
test byte [eax + 0x28], 0x20
jne 0x476d61
sub esp, 0xc
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e270
add esp, 0x10
lea ebx, [eax - 1]
cmp ebx, edi
jg 0x476b19
jmp 0x476d61
dec ebx
cmp ebx, edi
jle 0x476d61
push eax
push eax
push ebx
mov ecx, dword [esi + 0x54]
push ecx
call fcn.0042e290
add esp, 0x10
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x476b10
push edx
push edx
push eax
mov eax, dword [ebp - 0x28]
push eax
call fcn.004726f0
add esp, 0x10
test eax, eax
je 0x476b10
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], edi
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x68], eax
push eax
push eax
push esi
push 0
call dword [esi + 0x20]
add esp, 0x10
test eax, eax
jne 0x476b10
mov dword [ebp - 0x4c], 0
push eax
push eax
mov eax, dword [esi + 0x54]
push eax
push 0
call fcn.00475540
add esp, 0x10
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x476b8a
sub esp, 0xc
mov eax, dword [ebp - 0x44]
push eax
call fcn.0042e360
add esp, 0x10
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x476ba0
sub esp, 0xc
mov eax, dword [ebp - 0x5c]
push eax
call fcn.00453ad0
add esp, 0x10
mov eax, dword [ebp - 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esi + 0x14]
test byte [edx + 0xc], 0x20
je 0x47693c
cmp eax, 1
je 0x47693c
test eax, eax
je 0x47693c
jmp 0x476a63
mov dword [esi + 0x64], 0x19
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ebx
push eax
push eax
push esi
push 0
call dword [ebp - 0x34]
add esp, 0x10
test eax, eax
je 0x476b5d
mov edx, dword [ebx + 0x28]
test dl, 0x20
jne 0x4769c1
jmp 0x4769ba
mov dword [esi + 0x64], 0x28
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ebx
push eax
push eax
push esi
push 0
call dword [ebp - 0x34]
add esp, 0x10
test eax, eax
jne 0x476a2a
jmp 0x476b5d
mov dword [esi + 0x64], 0x22
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ebx
push eax
push eax
push esi
push 0
call dword [ebp - 0x34]
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
jne 0x476a19
jmp 0x476b64
mov dword [esi + 0x64], 0x26
mov dword [esi + 0x60], edi
mov dword [esi + 0x68], ebx
push edx
push edx
push esi
push 0
call dword [ebp - 0x34]
add esp, 0x10
test eax, eax
jne 0x4769dd
jmp 0x476b5d
lea eax, [ebp - 0x10]
push edx
push ebx
push esi
push eax
call dword [esi + 0x24]
add esp, 0x10
mov dword [ebp - 0x20], eax
test eax, eax
jle 0x476eb9
push eax
push eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.00453360
add esp, 0x10
test eax, eax
je 0x476f58
mov dword [esi + 0x64], 0x12
mov dword [esi + 0x68], ebx
mov eax, dword [ebp - 0x60]
mov dword [esi + 0x60], eax
cmp dword [ebp - 0x20], 1
je 0x476fcd
push eax
push eax
push esi
push 0
call dword [ebp - 0x48]
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0
test eax, eax
je 0x476b64
mov dword [ebp - 0x58], 1
jmp 0x47685a
mov dword [ebp - 0x44], 0
jmp 0x476720
sub esp, 0xc
push 0xd9
push str.external_openssl_crypto_x509_x509_vfy.c
push 0x41
push 0x7f
push 0xb
call fcn.00424150
add esp, 0x20
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x5c], 0
jmp 0x476b64
sub esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00453ad0
mov dword [esp], 0x12e
push str.external_openssl_crypto_x509_x509_vfy.c
push 0x41
push 0x7f
push 0xb
call fcn.00424150
mov dword [ebp - 0x4c], 0
add esp, 0x20
mov eax, dword [ebp - 0x4c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
dec edi
cmp edi, 0xffffffff
jne 0x476ad4
mov eax, dword [ebp - 0x54]
mov edi, dword [eax + 0x14]
test edi, edi
jle 0x476ddf
mov edx, dword [esi + 0x20]
sub esp, 0xc
mov dword [ebp - 0x24], edx
mov ecx, dword [esi + 0x54]
push ecx
call fcn.0042e270
lea edi, [eax - 1]
pop eax
pop edx
push edi
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e290
add esp, 0xc
mov ebx, eax
push 0
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x14]
push eax
push ebx
call fcn.00488fb0
add esp, 0x10
cmp eax, 1
je 0x476ddf
cmp eax, 2
mov dword [esi + 0x60], edi
sete al
and eax, 0xff
mov dword [esi + 0x68], ebx
add eax, 0x1b
mov dword [esi + 0x64], eax
push eax
push eax
push esi
push 0
call dword [ebp - 0x24]
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x476b64
push edi
push edi
mov ebx, dword [esi + 0x54]
push ebx
push 0
call fcn.00475540
mov dword [esp], esi
call dword [esi + 0x2c]
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x476b64
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x476fe1
sub esp, 0xc
push esi
call eax
add esp, 0x10
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
test ecx, ecx
je 0x476b64
mov edx, dword [ebp - 0x58]
test edx, edx
jne 0x476b74
mov eax, dword [esi + 0x14]
cmp byte [eax + 0xc], 0
jns 0x476b74
sub esp, 0xc
push esi
call dword [esi + 0x3c]
add esp, 0x10
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x476b64
jmp 0x476b74
call fcn.0042e660
mov dword [esi + 0x54], eax
test eax, eax
je 0x476e77
push edi
push edi
mov ebx, dword [esi + 8]
push ebx
push eax
call fcn.0042e5b0
add esp, 0x10
test eax, eax
jne 0x476f2c
sub esp, 0xc
push 0xb1
push str.external_openssl_crypto_x509_x509_vfy.c
push 0x41
push 0x7f
push 0xb
call fcn.00424150
add esp, 0x20
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x5c], 0
jmp 0x476b64
sub esp, 0xc
push 0xbc
jmp 0x476d03
mov dword [esi + 0x64], 0x12
mov dword [esi + 0x68], ebx
mov ecx, dword [ebp - 0x60]
mov dword [esi + 0x60], ecx
jmp 0x476cc6
push eax
push eax
mov eax, dword [ebp - 0x5c]
inc edi
push eax
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e5b0
mov dword [esi + 0x50], edi
add esp, 0x10
mov ecx, dword [ebp - 0x5c]
mov dword [esi + 0x64], 0x13
mov dword [esi + 0x68], ecx
mov dword [ebp - 0x5c], 0
jmp 0x4768a1
sub esp, 0xc
mov eax, dword [esi + 0x14]
mov ebx, dword [eax + 0xc]
push str.OPENSSL_ALLOW_PROXY_CERTS
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [ebp - 0x40], 1
test eax, eax
je 0x476f92
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x3c], eax
jmp 0x4768e3
sub esp, 0xc
push 0xb4
push str.external_openssl_crypto_x509_x509_vfy.c
push 3
push 1
mov eax, dword [esi + 8]
add eax, 0x10
push eax
call fcn.00427970
add esp, 0x20
mov dword [esi + 0x50], 1
jmp 0x4766fe
sub esp, 0xc
push ebx
call fcn.00453ad0
add esp, 0xc
mov ebx, dword [ebp - 0x10]
push ebx
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [esi + 0x54]
push eax
call fcn.0042e2c0
add esp, 0x10
mov dword [esi + 0x50], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
jmp 0x47685a
shr ebx, 6
mov dword [ebp - 0x40], ebx
mov edx, dword [ebp - 0x40]
and edx, 1
mov dword [ebp - 0x40], edx
jmp 0x476f1e
sub esp, 0xc
push 0xa4
push str.external_openssl_crypto_x509_x509_vfy.c
push 0x69
push 0x7f
push 0xb
call fcn.00424150
add esp, 0x20
mov dword [ebp - 0x4c], 0xffffffff
jmp 0x476ba0
sub esp, 0xc
mov eax, dword [ebp - 0x10]
push eax
call fcn.00453ad0
add esp, 0x10
jmp 0x476cc6
sub esp, 0xc
push esi
call fcn.00475950
add esp, 0x10
mov dword [ebp - 0x4c], eax
jmp 0x476e17